aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtGui
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-29 14:08:51 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-02-01 15:14:03 -0200
commit7896c3164dd17dfc73ef7ce8ad60939e9a697d68 (patch)
tree12f9a1f67930c3bfb1b50dbab7396049ad69524c /PySide/QtGui
parent2dcadf3454f73c2670e05a74cfe370e8b8e87836 (diff)
Add QGraphicsItem::UserType constant.
Diffstat (limited to 'PySide/QtGui')
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index fad277744..ac165a901 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -875,6 +875,10 @@
<interface-type name="QLayoutItem"/>
<interface-type name="QPaintDevice"/>
<interface-type name="QGraphicsItem">
+ <inject-code class="target" position="end">
+ PyObject* userTypeConstant = PyInt_FromLong(QGraphicsItem::UserType);
+ PyDict_SetItemString(SbkQGraphicsItem_Type.super.ht_type.tp_dict, "UserType", userTypeConstant);
+ </inject-code>
<modify-function signature="setParentItem(QGraphicsItem *)">
<modify-argument index="this">
<parent index="1" action="add"/>