aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtGui
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-02-25 13:45:28 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-25 13:50:55 -0300
commitb0112feddd5dbcdc602fe4836591313c04c8d934 (patch)
treeb9b2922791f07cf02d15c6a846e565be1d2554a6 /PySide/QtGui
parent18302e80b874f3032e17abe1deab03b92232711a (diff)
Fixed QtGui type system for QStyleFactory::create(QString) method.
The 'create' method returns a new QStyle object whose ownership must be transferred to Python.
Diffstat (limited to 'PySide/QtGui')
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index f83074c8e..a2b33ddd5 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -1905,7 +1905,13 @@
</modify-function>
</object-type>
<object-type name="QStringListModel"/>
- <object-type name="QStyleFactory"/>
+ <object-type name="QStyleFactory">
+ <modify-function signature="create(const QString&amp;)">
+ <modify-argument index="return">
+ <define-ownership owner="target"/>
+ </modify-argument>
+ </modify-function>
+ </object-type>
<object-type name="QStyleHintReturn"/>
<object-type name="QStyleHintReturnVariant"/>
<object-type name="QStyleHintReturnMask"/>