X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_ProfileDlg.cxx;h=37a295ca44e1e5ce1bbe5db307f07638c5407365;hb=84ad2d1e831ca45e98c48bfaa659fc31affd2224;hp=d813fb7abac05097a9c8f6f5b9bc4d431831693c;hpb=728fc7c7feee84006b269ae2ed8d5198c8f09e26;p=modules%2Fhydro.git 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 );