aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtUiTools/glue/uitools_loadui.h
diff options
context:
space:
mode:
Diffstat (limited to 'PySide/QtUiTools/glue/uitools_loadui.h')
-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));
}
}
}