aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/customwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/customwidget.cpp')
-rw-r--r--plugins/customwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/customwidget.cpp b/plugins/customwidget.cpp
index e9fc64ef2..74b07dcc9 100644
--- a/plugins/customwidget.cpp
+++ b/plugins/customwidget.cpp
@@ -117,11 +117,11 @@ QWidget* PyCustomWidget::createWidget(QWidget* parent)
QWidget* widget = 0;
if (result) {
if (unkowParent) //if parent does not exists in python, transfer the ownership to cpp
- Shiboken::Wrapper::releaseOwnership(result);
+ Shiboken::Object::releaseOwnership(result);
else
- Shiboken::Wrapper::setParent(pyParent, reinterpret_cast<PyObject*>(result));
+ Shiboken::Object::setParent(pyParent, reinterpret_cast<PyObject*>(result));
- widget = reinterpret_cast<QWidget*>(Shiboken::Wrapper::cppPointer(result, result->ob_type));
+ widget = reinterpret_cast<QWidget*>(Shiboken::Object::cppPointer(result, result->ob_type));
}
return widget;