summaryrefslogtreecommitdiffstats
path: root/PySide/QtDeclarative/pysideqmlregistertype.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-05-05 14:43:28 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-05-05 16:13:59 -0300
commit206474a5a3e6ae7a6a36701a8f30d7ed73280546 (patch)
treeafcaea9983a08ef289f9362e626ae577b125ff62 /PySide/QtDeclarative/pysideqmlregistertype.cpp
parent964eb13adf4760a20c07e629f62c7d6f14fac132 (diff)
downloadpyside-206474a5a3e6ae7a6a36701a8f30d7ed73280546.tar.gz
pyside-206474a5a3e6ae7a6a36701a8f30d7ed73280546.tar.xz
pyside-206474a5a3e6ae7a6a36701a8f30d7ed73280546.zip
Fix bug 825 - "Can't register a class using that uses metaclasses in QML using qmlRegisterType"
Reviewer: Renato Ara├║jo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide/QtDeclarative/pysideqmlregistertype.cpp')
-rw-r--r--PySide/QtDeclarative/pysideqmlregistertype.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/PySide/QtDeclarative/pysideqmlregistertype.cpp b/PySide/QtDeclarative/pysideqmlregistertype.cpp
index 0b05758..f5b878b 100644
--- a/PySide/QtDeclarative/pysideqmlregistertype.cpp
+++ b/PySide/QtDeclarative/pysideqmlregistertype.cpp
@@ -104,11 +104,6 @@ int PySide::qmlRegisterType(PyObject* pyObj, const char* uri, int versionMajor,
return -1;
}
- if (pyObj->ob_type != &SbkObjectType_Type) {
- PyErr_Format(PyExc_TypeError, "A shiboken-based python type expected, got %s.", pyObj->ob_type->tp_name);
- return -1;
- }
-
if (!PySequence_Contains(((PyTypeObject*)pyObj)->tp_mro, (PyObject*)declarativeItemType)) {
PyErr_Format(PyExc_TypeError, "A type inherited from %s expected, got %s.", declarativeItemType->tp_name, ((PyTypeObject*)pyObj)->tp_name);
return -1;