aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-10-03 18:49:42 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:56:08 -0300
commit1e29ab65924166688e352eaaa099ad571a980c4f (patch)
tree2a7ae3cb38b33a3211c9cec0da70016dd5d44c1d /plugins
parenta2cb6fe0254a122f0ad9d2ee991d9a249903ee12 (diff)
Initia QtCore port to python3.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/customwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/customwidget.cpp b/plugins/customwidget.cpp
index c752de589..fb849f20a 100644
--- a/plugins/customwidget.cpp
+++ b/plugins/customwidget.cpp
@@ -119,7 +119,7 @@ QWidget* PyCustomWidget::createWidget(QWidget* parent)
else
Shiboken::Object::setParent(pyParent, reinterpret_cast<PyObject*>(result));
- widget = reinterpret_cast<QWidget*>(Shiboken::Object::cppPointer(result, result->ob_type));
+ widget = reinterpret_cast<QWidget*>(Shiboken::Object::cppPointer(result, Py_TYPE(result)));
}
return widget;