aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-06-20 15:20:44 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:29 -0300
commitebaf95ca1aba9febe62cb98cd40fc9e710c45b12 (patch)
treefb31636e9a7701da2886f422625c513689bd7589 /PySide/QtCore
parentf549793a5ca68bc6cc213506df0b2ac3fc541413 (diff)
Removed glue code for QObject.inherits function.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'PySide/QtCore')
-rw-r--r--PySide/QtCore/typesystem_core.xml19
1 files changed, 0 insertions, 19 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index 704306115..1c0baf757 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -1382,25 +1382,6 @@
%PYARG_0 = %CONVERTTOPYTHON[bool](qobjectDisconnectCallback(%1, %2, %3));
</inject-code>
</add-function>
- <inject-code class="native" position="beginning">
- static bool
- qobjectInheritsInternal(PyTypeObject *objType, const char *class_name)
- {
- if (strcmp(objType->tp_name, class_name) == 0)
- return true;
-
- PyTypeObject* base = (objType)->tp_base;
- if (base == 0)
- return false;
- return qobjectInheritsInternal(base, class_name);
- }
- </inject-code>
- <modify-function signature="inherits(const char*) const">
- <inject-code class="target" position="beginning">
- bool retval = qobjectInheritsInternal(self->ob_type, %1) ? true : %CPPSELF.%FUNCTION_NAME(%1);
- %PYARG_0 = %CONVERTTOPYTHON[bool](retval);
- </inject-code>
- </modify-function>
<inject-code class="native" file="glue/qobject_findchild.cpp"/>
<add-function signature="findChild(PyTypeObject*, const QString&amp;)" return-type="PyObject*">
<inject-code class="target" position="beginning">