Add polymorphic-id-expression to QGraphicsObject and QDeclarativeItem.

This commit is contained in:
Hugo Parente Lima 2011-01-10 17:52:37 -02:00
commit b5331e5c56
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@
<object-type name="QDeclarativeImageProvider"> <object-type name="QDeclarativeImageProvider">
<enum-type name="ImageType" /> <enum-type name="ImageType" />
</object-type> </object-type>
<object-type name="QDeclarativeItem"> <object-type name="QDeclarativeItem" polymorphic-id-expression="qgraphicsitem_cast&lt;QDeclarativeItem*>(%1)">
<extra-includes> <extra-includes>
<include file-name="pysideqmlregistertype.h" location="local"/> <include file-name="pysideqmlregistertype.h" location="local"/>
</extra-includes> </extra-includes>

View file

@ -5584,7 +5584,7 @@
<object-type name="QGraphicsEffectSource"/> <object-type name="QGraphicsEffectSource"/>
--> -->
<object-type name="QGraphicsObject"/> <object-type name="QGraphicsObject" polymorphic-id-expression="qgraphicsitem_cast&lt;QGraphicsObject*>(%1)" />
<object-type name="QGraphicsOpacityEffect"/> <object-type name="QGraphicsOpacityEffect"/>
<object-type name="QGraphicsRotation"/> <object-type name="QGraphicsRotation"/>
<object-type name="QGraphicsScale"/> <object-type name="QGraphicsScale"/>