diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-05-05 14:43:28 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:19 -0300 |
commit | 442bcd9d54b64e89f290e5f983f4fdcc5dac3381 (patch) | |
tree | 1def9aaad89721b900a503f20ba6b24a20d6faad /PySide/QtDeclarative/pysideqmlregistertype.cpp | |
parent | 8cb9b6d1973e9a1500399c2a2cab151d557c38d7 (diff) |
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.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/PySide/QtDeclarative/pysideqmlregistertype.cpp b/PySide/QtDeclarative/pysideqmlregistertype.cpp index 0b057586e..f5b878be3 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; |