]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Profile dialog backgound like it is in OCC viewer.
authornds <nds@opencascade.com>
Thu, 28 Nov 2013 12:10:08 +0000 (12:10 +0000)
committernds <nds@opencascade.com>
Thu, 28 Nov 2013 12:10:08 +0000 (12:10 +0000)
src/HYDROGUI/HYDROGUI_ProfileDlg.cxx

index d813fb7abac05097a9c8f6f5b9bc4d431831693c..37a295ca44e1e5ce1bbe5db307f07638c5407365 100644 (file)
 #include <CurveCreator_Widget.h>
 #include <CurveCreator_ICurve.hxx>
 
-#include <OCCViewer_ViewModel.h>
 #include <OCCViewer_ViewWidget.h>
+#include <OCCViewer_ViewPort3d.h>
+
+#include <SUIT_Session.h>
+#include <SUIT_ResourceMgr.h>
 
 #include <QGroupBox>
 #include <QHBoxLayout>
@@ -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 );