summaryrefslogtreecommitdiffstats
path: root/PySide/QtWebKit/typesystem_webkit.xml
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-04-25 10:10:37 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-04-25 14:17:48 -0300
commita07d1926250b35caa2263a18f77cbcfd3f9f6065 (patch)
treef25dea7b72f652da789d4c2ef0678ae73d8b7629 /PySide/QtWebKit/typesystem_webkit.xml
parentcd1dbb0b9da900e83cb1ce62e20e901e1b24cd6d (diff)
downloadpyside-a07d1926250b35caa2263a18f77cbcfd3f9f6065.tar.gz
pyside-a07d1926250b35caa2263a18f77cbcfd3f9f6065.tar.xz
pyside-a07d1926250b35caa2263a18f77cbcfd3f9f6065.zip
Implemented conversion from QMultiMap to Python dictonary.
Fixes bug #773. Reviewer: Lauro Moura <lauro.neto@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide/QtWebKit/typesystem_webkit.xml')
-rw-r--r--PySide/QtWebKit/typesystem_webkit.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/PySide/QtWebKit/typesystem_webkit.xml b/PySide/QtWebKit/typesystem_webkit.xml
index eb645c2..5187cea 100644
--- a/PySide/QtWebKit/typesystem_webkit.xml
+++ b/PySide/QtWebKit/typesystem_webkit.xml
@@ -54,8 +54,19 @@
</modify-argument>
</modify-function>
<modify-function signature="print(QPrinter*)const" rename="print_" />
- <!-- See BUG 773 -->
- <modify-function signature="metaData()const" remove="all" />
+ <modify-function signature="metaData()const">
+ <modify-argument index="return">
+ <replace-type modified-type="PyObject" />
+ </modify-argument>
+ <inject-code position="end">
+ <insert-template name="convertFromMultiMap">
+ <replace from="%MAP_NAME" to="%0"/>
+ <replace from="%RETURN_NAME" to="%PYARG_0"/>
+ <replace from="%KEY_TYPE" to="QString"/>
+ <replace from="%VALUE_TYPE" to="QString"/>
+ </insert-template>
+ </inject-code>
+ </modify-function>
</object-type>
<object-type name="QWebSettings">