diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-09-30 15:36:20 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-09-30 17:26:15 -0300 |
commit | 7633675d1154eda8d799aa340c5513baa34621b9 (patch) | |
tree | c77eb3592994cef6fdffcf0d10162b48f056122f | |
parent | 846c9a151f23ec727540f1bda8d6b43609f5ad43 (diff) | |
download | pyside-7633675d1154eda8d799aa340c5513baa34621b9.tar.gz pyside-7633675d1154eda8d799aa340c5513baa34621b9.tar.xz pyside-7633675d1154eda8d799aa340c5513baa34621b9.zip |
Support any QObject in QUiLoader.load function.
Fix bug #392.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r-- | PySide/QtUiTools/glue/uitools_loadui.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PySide/QtUiTools/glue/uitools_loadui.h b/PySide/QtUiTools/glue/uitools_loadui.h index da851c1..bce1367 100644 --- a/PySide/QtUiTools/glue/uitools_loadui.h +++ b/PySide/QtUiTools/glue/uitools_loadui.h @@ -7,7 +7,7 @@ #include <shiboken.h> static void -_populate_parent(PyObject* pyParent, QWidget *parent) +_populate_parent(PyObject* pyParent, QObject *parent) { if (parent->children().isEmpty()) return; @@ -21,7 +21,7 @@ _populate_parent(PyObject* pyParent, QWidget *parent) PyObject_SetAttrString(pyParent, qPrintable(name), pyChild); Shiboken::setParent(pyParent, pyChild); - _populate_parent(pyChild, qobject_cast<QWidget*>(child)); + _populate_parent(pyChild, qobject_cast<QObject*>(child)); } } } |