aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtUiTools
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-30 15:36:20 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-30 17:26:15 -0300
commit7633675d1154eda8d799aa340c5513baa34621b9 (patch)
treec77eb3592994cef6fdffcf0d10162b48f056122f /PySide/QtUiTools
parent846c9a151f23ec727540f1bda8d6b43609f5ad43 (diff)
Support any QObject in QUiLoader.load function.
Fix bug #392. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide/QtUiTools')
-rw-r--r--PySide/QtUiTools/glue/uitools_loadui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/PySide/QtUiTools/glue/uitools_loadui.h b/PySide/QtUiTools/glue/uitools_loadui.h
index da851c14c..bce1367c1 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));
}
}
}