From 84ad2d1e831ca45e98c48bfaa659fc31affd2224 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 28 Nov 2013 12:10:08 +0000 Subject: [PATCH] Profile dialog backgound like it is in OCC viewer. --- src/HYDROGUI/HYDROGUI_ProfileDlg.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 ); -- 2.39.2