summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-07-17 23:26:02 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-12-09 19:25:35 -0300
commit601cb846dd0c3d8ff49822846f5dd44ab87e0525 (patch)
tree2c9e0c83ccfe34e2259a007030d6941dc455c7c3
parentb6b5212be5f12fade45b92d790f144f37e17cd64 (diff)
downloadpyside-601cb846dd0c3d8ff49822846f5dd44ab87e0525.tar.gz
pyside-601cb846dd0c3d8ff49822846f5dd44ab87e0525.tar.xz
pyside-601cb846dd0c3d8ff49822846f5dd44ab87e0525.zip
Turned QStyleOptionViewItem into value type, for it has a public copy constructor.
It is passed around by value in many places, like the return value of QAbstractItemView::viewOptions(). I did the same to the variations: QStyleOptionViewItemV2, QStyleOptionViewItemV3, etc.
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml16
1 files changed, 8 insertions, 8 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index ac28898..a8746ee 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -396,22 +396,22 @@
<enum-type name="StyleOptionVersion"/>
<enum-type name="ToolButtonFeature" flags="ToolButtonFeatures" />
</object-type>
- <object-type name="QStyleOptionViewItem" polymorphic-id-expression="%1-&gt;type == QStyleOptionViewItem::Type &amp;&amp; %1-&gt;version == QStyleOptionViewItem::Version">
+ <value-type name="QStyleOptionViewItem" polymorphic-id-expression="%1-&gt;type == QStyleOptionViewItem::Type &amp;&amp; %1-&gt;version == QStyleOptionViewItem::Version">
<enum-type name="Position"/>
<enum-type name="StyleOptionType"/>
<enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionViewItemV2" polymorphic-id-expression="%1-&gt;type == QStyleOptionViewItemV2::Type &amp;&amp; %1-&gt;version == QStyleOptionViewItemV2::Version">
+ </value-type>
+ <value-type name="QStyleOptionViewItemV2" polymorphic-id-expression="%1-&gt;type == QStyleOptionViewItemV2::Type &amp;&amp; %1-&gt;version == QStyleOptionViewItemV2::Version">
<enum-type name="StyleOptionVersion"/>
<enum-type name="ViewItemFeature" flags="ViewItemFeatures"/>
- </object-type>
- <object-type name="QStyleOptionViewItemV3" polymorphic-id-expression="%1-&gt;type == QStyleOptionViewItemV3::Type &amp;&amp; %1-&gt;version == QStyleOptionViewItemV3::Version">
+ </value-type>
+ <value-type name="QStyleOptionViewItemV3" polymorphic-id-expression="%1-&gt;type == QStyleOptionViewItemV3::Type &amp;&amp; %1-&gt;version == QStyleOptionViewItemV3::Version">
<enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionViewItemV4" polymorphic-id-expression="%1-&gt;type == QStyleOptionViewItemV4::Type &amp;&amp; %1-&gt;version == QStyleOptionViewItemV4::Version" >
+ </value-type>
+ <value-type name="QStyleOptionViewItemV4" polymorphic-id-expression="%1-&gt;type == QStyleOptionViewItemV4::Type &amp;&amp; %1-&gt;version == QStyleOptionViewItemV4::Version" >
<enum-type name="StyleOptionVersion"/>
<enum-type name="ViewItemPosition"/>
- </object-type>
+ </value-type>
<value-type name="QTextFragment" />
<value-type name="QBitmap" >
<modify-function signature="fromData(QSize,const uchar*,QImage::Format)">