summaryrefslogtreecommitdiffstats
path: root/PySide/QtWebKit/typesystem_webkit.xml
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-08-18 17:32:33 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-08-18 17:32:33 -0300
commitf9c9effbf77fee696480cae64fd9fbae74df2eaf (patch)
tree879ca22009243955b2f30eb7b8c0e006571b31e0 /PySide/QtWebKit/typesystem_webkit.xml
parentcaec3411765160add1e5ce2521a6da9f3e1b8d0c (diff)
downloadpyside-f9c9effbf77fee696480cae64fd9fbae74df2eaf.tar.gz
pyside-f9c9effbf77fee696480cae64fd9fbae74df2eaf.tar.xz
pyside-f9c9effbf77fee696480cae64fd9fbae74df2eaf.zip
Fixed conversion rules for QWebPage.javaScriptPrompt method.
Diffstat (limited to 'PySide/QtWebKit/typesystem_webkit.xml')
-rw-r--r--PySide/QtWebKit/typesystem_webkit.xml25
1 files changed, 16 insertions, 9 deletions
diff --git a/PySide/QtWebKit/typesystem_webkit.xml b/PySide/QtWebKit/typesystem_webkit.xml
index 39326c7..bd32ccc 100644
--- a/PySide/QtWebKit/typesystem_webkit.xml
+++ b/PySide/QtWebKit/typesystem_webkit.xml
@@ -141,20 +141,27 @@
</modify-function>
<modify-function signature="javaScriptPrompt(QWebFrame*,const QString &amp;,const QString &amp;,QString*)">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
<modify-argument index="4">
<remove-argument />
+ <conversion-rule class="native">
+ QString _local;
+ QString* %4 = &amp;_local;
+ </conversion-rule>
</modify-argument>
<modify-argument index="return">
- <replace-type modified-type="(retval, result)"/>
+ <replace-type modified-type="PySequence"/>
+ <conversion-rule class="native">
+ Shiboken::AutoDecRef pyRes(PySequence_GetItem(%PYARG_0, 0));
+ Shiboken::AutoDecRef pyStr(PySequence_GetItem(%PYARG_0, 1));
+ %RETURN_TYPE %out = %CONVERTTOCPP[%RETURN_TYPE](pyRes);
+ *%4 = %CONVERTTOCPP[QString](pyStr);
+ </conversion-rule>
+ <conversion-rule class="target">
+ %PYARG_0 = PyTuple_New(2);
+ PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](%0));
+ PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QString](*%4));
+ </conversion-rule>
</modify-argument>
- <inject-code class="target" position="end">
- QString str;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, &amp;str);
- %PYARG_0 = Shiboken::makeTuple(retval_, str);
- </inject-code>
</modify-function>
</object-type>
<object-type name="QWebHistory"/>