From dca839329787121713387e68b2c9434601dbc178 Mon Sep 17 00:00:00 2001 From: andreas <andreas@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Mon, 19 Apr 2010 16:30:14 +0000 Subject: [PATCH] changed return type of bpqt_handle to QWidget* (needed to addd a python based widget to main area) git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2053 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- modules/gui/pymod/export_gosty.cc | 2 +- modules/gui/pymod/export_sip_handler.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/gui/pymod/export_gosty.cc b/modules/gui/pymod/export_gosty.cc index a29bbab70..a4000a992 100644 --- a/modules/gui/pymod/export_gosty.cc +++ b/modules/gui/pymod/export_gosty.cc @@ -82,7 +82,7 @@ DataViewerProxyPtr app_create_data_viewer2(GostyApp* app, const ost::img::Data& } void app_add_widget_to_app_a(GostyApp* app, const QString& ident, - QObject* object) + QWidget* object) { if(QWidget* widget = dynamic_cast<QWidget*>(object)){ TransferOwnership(widget); diff --git a/modules/gui/pymod/export_sip_handler.cc b/modules/gui/pymod/export_sip_handler.cc index 28fe99a72..2d746fab7 100644 --- a/modules/gui/pymod/export_sip_handler.cc +++ b/modules/gui/pymod/export_sip_handler.cc @@ -36,9 +36,9 @@ unsigned long sip_handle(QObject* w) return reinterpret_cast<unsigned long>(w); } -QObject* bpqt_handle(unsigned long a) +QWidget* bpqt_handle(unsigned long a) { - return reinterpret_cast<QObject*>(a); + return reinterpret_cast<QWidget*>(a); } } -- GitLab