summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-06-09 15:14:59 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-06-09 15:22:34 -0300
commitee602e80f1ccbce91c0203d750df8e9f7d28752b (patch)
treed025b30ee3b693fc0fd7c3fdd27a3c0844f343ed
parent82f4f13d27c85454bb80f9664754a9a337deee21 (diff)
downloadpyside-ee602e80f1ccbce91c0203d750df8e9f7d28752b.tar.gz
pyside-ee602e80f1ccbce91c0203d750df8e9f7d28752b.tar.xz
pyside-ee602e80f1ccbce91c0203d750df8e9f7d28752b.zip
Fixed default return value for "QStyleOptionViewItem QAbstractItemView::viewOptions() const".
Wrong code would be generated if compiling avoiding the "protected hack".
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index 091ef64..8ba49bd 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -1766,6 +1766,11 @@
<reference-count action="set"/>
</modify-argument>
</modify-function>
+ <modify-function signature="viewOptions()const">
+ <modify-argument index="return">
+ <replace-default-expression with="QStyleOptionViewItem()" />
+ </modify-argument>
+ </modify-function>
<modify-function signature="model() const">
<modify-argument index="return">
<!-- Defining ownership as "default" avoids the object to be automatically