#include "PythonQtWrapper_QDrag.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QDrag::staticMetaObject, "childEvent(QDrag*,QChildEvent* )"); void* args[2] = {NULL, (void*)&arg__1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QDrag::staticMetaObject, "customEvent(QDrag*,QEvent* )"); void* args[2] = {NULL, (void*)&arg__1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QDrag::staticMetaObject, "event(QDrag*,QEvent* )"); 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) { returnValue = *((bool *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QDrag::staticMetaObject, "eventFilter(QDrag*,QObject* ,QEvent* )"); 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) { returnValue = *((bool *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QDrag::staticMetaObject, "timerEvent(QDrag*,QTimerEvent* )"); void* args[2] = {NULL, (void*)&arg__1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QDrag::timerEvent(arg__1); } QDrag* PythonQtWrapper_QDrag::new_QDrag(QWidget* dragSource) { return new PythonQtShell_QDrag(dragSource); } QMimeData* PythonQtWrapper_QDrag::mimeData(QDrag* theWrappedObject) const { return theWrappedObject->mimeData(); } Qt::DropAction PythonQtWrapper_QDrag::exec(QDrag* theWrappedObject, Qt::DropActions supportedActions, Qt::DropAction defaultAction) { return theWrappedObject->exec(supportedActions, defaultAction); } QWidget* PythonQtWrapper_QDrag::target(QDrag* theWrappedObject) const { return theWrappedObject->target(); } Qt::DropAction PythonQtWrapper_QDrag::exec(QDrag* theWrappedObject, Qt::DropActions supportedActions) { return theWrappedObject->exec(supportedActions); } QPixmap PythonQtWrapper_QDrag::pixmap(QDrag* theWrappedObject) const { return theWrappedObject->pixmap(); } QPoint PythonQtWrapper_QDrag::hotSpot(QDrag* theWrappedObject) const { return theWrappedObject->hotSpot(); } void PythonQtWrapper_QDrag::setPixmap(QDrag* theWrappedObject, const QPixmap& arg__1) { theWrappedObject->setPixmap(arg__1); } 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); } QWidget* PythonQtWrapper_QDrag::source(QDrag* theWrappedObject) const { return theWrappedObject->source(); }