From: nds Date: Thu, 28 Nov 2013 12:10:08 +0000 (+0000) Subject: Profile dialog backgound like it is in OCC viewer. X-Git-Tag: issue_132_11_28~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=84ad2d1e831ca45e98c48bfaa659fc31affd2224;p=modules%2Fhydro.git Profile dialog backgound like it is in OCC viewer. --- diff --git a/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx b/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx index d813fb7a..37a295ca 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx @@ -26,8 +26,11 @@ #include #include -#include #include +#include + +#include +#include #include #include @@ -49,6 +52,11 @@ HYDROGUI_ProfileDlg::HYDROGUI_ProfileDlg( HYDROGUI_Module* theModule, const QStr addWidget( myEditorWidget, 3 ); myViewWidget = new OCCViewer_ViewWidget( this ); + OCCViewer_ViewPort3d* aViewPort = myViewWidget->getViewPort(); + SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr(); + if ( aResMgr ) + aViewPort->setBackground( aResMgr->backgroundValue( "OCCViewer", "background", + Qtx::BackgroundData( Qt::black ) ) ); addWidget( myViewWidget, 4 ); //myAddElementBox = new QGroupBox( tr( "ADD_ELEMENT" ), this );