From 7633675d1154eda8d799aa340c5513baa34621b9 Mon Sep 17 00:00:00 2001 From: renatofilho Date: Thu, 30 Sep 2010 15:36:20 -0300 Subject: Support any QObject in QUiLoader.load function. Fix bug #392. Reviewer: Luciano Wolf Marcelo Lira --- PySide/QtUiTools/glue/uitools_loadui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'PySide/QtUiTools') 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 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(child)); + _populate_parent(pyChild, qobject_cast(child)); } } } -- cgit v1.2.3