Skip to content
Snippets Groups Projects
Commit dca83932 authored by andreas's avatar andreas
Browse files

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
parent 06358987
Branches
Tags
No related merge requests found
......@@ -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);
......
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment