#include "PythonQtWrapper_QMimeData.h" #include #include #include #include #include #include #include #include #include #include #include #include #include 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QMimeData::staticMetaObject, "childEvent(QMimeData*,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; } } 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QMimeData::staticMetaObject, "customEvent(QMimeData*,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; } } 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QMimeData::staticMetaObject, "event(QMimeData*,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 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QMimeData::staticMetaObject, "eventFilter(QMimeData*,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 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QMimeData::staticMetaObject, "formats(QMimeData*)"); 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) { returnValue = *((QStringList *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QMimeData::staticMetaObject, "hasFormat(QMimeData*,const QString& )"); bool returnValue; 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) { returnValue = *((bool *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QMimeData::staticMetaObject, "retrieveData(QMimeData*,const QString& ,QVariant::Type )"); 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) { returnValue = *((QVariant *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } 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 PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QMimeData::staticMetaObject, "timerEvent(QMimeData*,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; } } QMimeData::timerEvent(arg__1); } QMimeData* PythonQtWrapper_QMimeData::new_QMimeData() { return new PythonQtShell_QMimeData(); } QVariant PythonQtWrapper_QMimeData::colorData(QMimeData* theWrappedObject) const { return theWrappedObject->colorData(); } bool PythonQtWrapper_QMimeData::hasImage(QMimeData* theWrappedObject) const { return theWrappedObject->hasImage(); } QByteArray PythonQtWrapper_QMimeData::data(QMimeData* theWrappedObject, const QString& mimetype) const { return theWrappedObject->data(mimetype); } void PythonQtWrapper_QMimeData::setUrls(QMimeData* theWrappedObject, const QList& urls) { theWrappedObject->setUrls(urls); } QVariant PythonQtWrapper_QMimeData::imageData(QMimeData* theWrappedObject) const { return theWrappedObject->imageData(); } void PythonQtWrapper_QMimeData::setImageData(QMimeData* theWrappedObject, const QVariant& image) { theWrappedObject->setImageData(image); } QStringList PythonQtWrapper_QMimeData::formats(QMimeData* theWrappedObject) const { return ((PythonQtPublicPromoter_QMimeData*)theWrappedObject)->promoted_formats(); } void PythonQtWrapper_QMimeData::setHtml(QMimeData* theWrappedObject, const QString& html) { theWrappedObject->setHtml(html); } void PythonQtWrapper_QMimeData::setText(QMimeData* theWrappedObject, const QString& text) { theWrappedObject->setText(text); } bool PythonQtWrapper_QMimeData::hasFormat(QMimeData* theWrappedObject, const QString& mimetype) const { return ((PythonQtPublicPromoter_QMimeData*)theWrappedObject)->promoted_hasFormat(mimetype); } QList PythonQtWrapper_QMimeData::urls(QMimeData* theWrappedObject) const { return theWrappedObject->urls(); } void PythonQtWrapper_QMimeData::setColorData(QMimeData* theWrappedObject, const QVariant& color) { theWrappedObject->setColorData(color); } bool PythonQtWrapper_QMimeData::hasHtml(QMimeData* theWrappedObject) const { return theWrappedObject->hasHtml(); } void PythonQtWrapper_QMimeData::setData(QMimeData* theWrappedObject, const QString& mimetype, const QByteArray& data) { theWrappedObject->setData(mimetype, data); } void PythonQtWrapper_QMimeData::clear(QMimeData* theWrappedObject) { theWrappedObject->clear(); } QString PythonQtWrapper_QMimeData::html(QMimeData* theWrappedObject) const { return theWrappedObject->html(); } bool PythonQtWrapper_QMimeData::hasUrls(QMimeData* theWrappedObject) const { return theWrappedObject->hasUrls(); } QString PythonQtWrapper_QMimeData::text(QMimeData* theWrappedObject) const { return theWrappedObject->text(); } bool PythonQtWrapper_QMimeData::hasText(QMimeData* theWrappedObject) const { return theWrappedObject->hasText(); } void PythonQtWrapper_QMimeData::removeFormat(QMimeData* theWrappedObject, const QString& mimetype) { theWrappedObject->removeFormat(mimetype); } bool PythonQtWrapper_QMimeData::hasColor(QMimeData* theWrappedObject) const { return theWrappedObject->hasColor(); } QVariant PythonQtWrapper_QMimeData::retrieveData(QMimeData* theWrappedObject, const QString& mimetype, QVariant::Type preferredType) const { return ((PythonQtPublicPromoter_QMimeData*)theWrappedObject)->promoted_retrieveData(mimetype, preferredType); }