aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtGui
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-06 14:48:25 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-07 11:42:48 -0300
commit6b8d262b4067bffd4e5a9611c07b862aa64d2538 (patch)
tree19b15ca4337958bf82cd1e90ab1484a69e579f0c /PySide/QtGui
parent673c0d26757526a068e758195d235c047150d789 (diff)
Workaround to change the documentation about the return value of some functions.
Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtGui')
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml11
1 files changed, 7 insertions, 4 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index 29b16571c..68d5c0d8c 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -1156,6 +1156,9 @@
<modify-argument index="1">
<remove-argument/>
</modify-argument>
+ <modify-argument index="return">
+ <replace-type modified-type="(retval, blockingPanel)"/>
+ </modify-argument>
<inject-code class="target" position="beginning">
QGraphicsItem *item_ = NULL;
%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;item_);
@@ -3664,7 +3667,7 @@
<modify-function signature="getOpenFileNames(QWidget*, const QString&amp;, const QString&amp;, const QString&amp;, QString*, QFlags&lt;QFileDialog::Option&gt;)" allow-thread="yes">
<modify-argument index="return">
- <replace-type modified-type="PyObject"/>
+ <replace-type modified-type="(fileNames, selectedFilter)"/>
</modify-argument>
<inject-code class="target" position="end">
<insert-template name="return_for_QFileDialog"/>
@@ -3675,7 +3678,7 @@
</modify-function>
<modify-function signature="getOpenFileName(QWidget*, const QString&amp;, const QString&amp;, const QString&amp;, QString*, QFlags&lt;QFileDialog::Option&gt;)" allow-thread="yes">
<modify-argument index="return">
- <replace-type modified-type="PyObject"/>
+ <replace-type modified-type="(fileName, selectedFilter)"/>
</modify-argument>
<inject-code class="target" position="end">
<insert-template name="return_for_QFileDialog"/>
@@ -3686,7 +3689,7 @@
</modify-function>
<modify-function signature="getSaveFileName(QWidget*, const QString&amp;, const QString&amp;, const QString&amp;, QString*, QFlags&lt;QFileDialog::Option&gt;)" allow-thread="yes">
<modify-argument index="return">
- <replace-type modified-type="PyObject"/>
+ <replace-type modified-type="(fileName, selectedFilter)"/>
</modify-argument>
<inject-code class="target" position="end">
<insert-template name="return_for_QFileDialog"/>
@@ -3892,7 +3895,7 @@
<replace-default-expression with="QClipboard::Clipboard"/>
</modify-argument>
<modify-argument index="return">
- <replace-type modified-type="PyObject"/>
+ <replace-type modified-type="(retval, subtype)"/>
</modify-argument>
<inject-code class="target" position="end">
%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2);