From d617892b59a3d9e90b178b87326bd06a00eeac17 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Thu, 18 Feb 2010 14:30:23 -0300 Subject: Adds code to QAbstractTransition.setTargetStates regarding reference keeping. The added custom code keeps alive the reference of the sequence passed to setTargetStates and decrefs any previous object passed via setTargetState or setTargetStates. --- PySide/QtCore/typesystem_core.xml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'PySide/QtCore') diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 48f0b2d3f..f43fd945c 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -2805,6 +2805,15 @@ + + + // The normal here would be to use the 'reference-count' tag but this + // method is strongly tied to 'setTargetState' since both affect the same + // internal value in QAbstractTransition. + Shiboken::SbkBaseWrapper_keepReference(reinterpret_cast<SbkBaseWrapper*>(%PYSELF), "setTargetState(QAbstractState*)1", %PYARG_1); + + + -- cgit v1.2.3