aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-18 11:02:03 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-19 15:15:12 -0300
commit5e0550446c3546beb4a7076a80a7475b394567f4 (patch)
tree4709c72e275bdc1c54c914ccedfa11ec07af200e /plugins
parent098946263932e115bdbca17eb51c3a27848435e2 (diff)
Updated to new shiboken API.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/customwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/customwidget.cpp b/plugins/customwidget.cpp
index 6165ebfc9..e9fc64ef2 100644
--- a/plugins/customwidget.cpp
+++ b/plugins/customwidget.cpp
@@ -117,9 +117,9 @@ 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::BindingManager::instance().transferOwnershipToCpp(result);
+ Shiboken::Wrapper::releaseOwnership(result);
else
- Shiboken::setParent(pyParent, reinterpret_cast<PyObject*>(result));
+ Shiboken::Wrapper::setParent(pyParent, reinterpret_cast<PyObject*>(result));
widget = reinterpret_cast<QWidget*>(Shiboken::Wrapper::cppPointer(result, result->ob_type));
}