aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore/typesystem_core.xml
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-18 11:02:03 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-19 15:15:12 -0300
commit5e0550446c3546beb4a7076a80a7475b394567f4 (patch)
tree4709c72e275bdc1c54c914ccedfa11ec07af200e /PySide/QtCore/typesystem_core.xml
parent098946263932e115bdbca17eb51c3a27848435e2 (diff)
Updated to new shiboken API.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtCore/typesystem_core.xml')
-rw-r--r--PySide/QtCore/typesystem_core.xml15
1 files changed, 7 insertions, 8 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index b048bf09d..83fd2ed81 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -1129,7 +1129,7 @@
%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%CPPSELF.%FUNCTION_NAME());
</inject-code>
<modify-argument index="return">
- <parent index="this" action="add"/>
+ <reference-count action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="deleteLater()">
@@ -1941,8 +1941,7 @@
%PYARG_2,
%3)
);
- // invalidate to avoid use of python object
- Shiboken::BindingManager::instance().destroyWrapper((SbkObject*)pyTimer);
+ Shiboken::Wrapper::invalidate((SbkObject*)pyTimer);
timer->setSingleShot(true);
timer->connect(timer, SIGNAL(timeout()), timer, SLOT(deleteLater()));
timer->start(%1);
@@ -1952,7 +1951,7 @@
<inject-code class="target" position="beginning">
// %FUNCTION_NAME() - disable generation of c++ function call
Shiboken::AutoDecRef emptyTuple(PyTuple_New(0));
- PyObject* pyTimer = Shiboken::SbkType&lt;QTimer>()->tp_new(Shiboken::SbkType&lt;QTimer>(), emptyTuple, 0);
+ PyObject *pyTimer = Shiboken::SbkType&lt;QTimer>()->tp_new(Shiboken::SbkType&lt;QTimer>(), emptyTuple, 0);
Shiboken::SbkType&lt;QTimer>()->tp_init(pyTimer, emptyTuple, 0);
QTimer* timer = Converter&lt;QTimer*>::toCpp(pyTimer);
timer->setSingleShot(true);
@@ -1980,7 +1979,7 @@
pyargs[1])
);
}
- Shiboken::BindingManager::instance().destroyWrapper((SbkObject*)pyTimer);
+ Shiboken::Wrapper::invalidate((SbkObject*)pyTimer);
timer->start(%1);
</inject-code>
</add-function>
@@ -2568,7 +2567,7 @@
<inject-code class="target" position="beginning">
for(int counter = 0; counter &lt; %CPPSELF.animationCount(); ++counter ) {
PyObject* obj = %CONVERTTOPYTHON[QAbstractAnimation*](%CPPSELF.animationAt(counter));
- Shiboken::setParent(NULL, obj);
+ Shiboken::Wrapper::setParent(NULL, obj);
Py_DECREF(obj);
}
%CPPSELF.clear();
@@ -2722,7 +2721,7 @@
%PYARG_0 = PySet_New(0);
foreach(QAbstractState* abs_state, %CPPSELF.configuration()) {
Shiboken::AutoDecRef obj(%CONVERTTOPYTHON[QAbstractState*](abs_state));
- Shiboken::setParent(self, obj);
+ Shiboken::Wrapper::setParent(self, obj);
PySet_Add(%PYARG_0, obj);
}
</inject-code>
@@ -2733,7 +2732,7 @@
%PYARG_0 = PyList_New(0);
foreach(QAbstractAnimation* abs_anim, %CPPSELF.defaultAnimations()) {
Shiboken::AutoDecRef obj(%CONVERTTOPYTHON[QAbstractAnimation*](abs_anim));
- Shiboken::setParent(self, obj);
+ Shiboken::Wrapper::setParent(self, obj);
PyList_Append(%PYARG_0, obj);
}
</inject-code>