summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-11-23 14:37:16 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-11-23 14:37:16 -0200
commita8ae0680f23ca5e702a662cf36a465b7a7b2788a (patch)
tree13257f86b17d96261cd8713463bf75c14d507cbf /plugins
parent6cefd33cd08232b25a3b81d598b88ec47aa5aad2 (diff)
downloadpyside-a8ae0680f23ca5e702a662cf36a465b7a7b2788a.tar.gz
pyside-a8ae0680f23ca5e702a662cf36a465b7a7b2788a.tar.xz
pyside-a8ae0680f23ca5e702a662cf36a465b7a7b2788a.zip
Adapt to API changes in libshiboken.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/customwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/customwidget.cpp b/plugins/customwidget.cpp
index e9fc64e..74b07dc 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;