From: mkr Date: Thu, 7 Jul 2005 12:46:47 +0000 (+0000) Subject: Fix for bug IPAL9241 : Changing view mode of the dataflow changes background color... X-Git-Tag: T2_2_5a~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6ae9084804effe3848430d8dae7c41061987c65;p=modules%2Fsuperv.git Fix for bug IPAL9241 : Changing view mode of the dataflow changes background color (according to the last comment from akk). --- diff --git a/src/SUPERVGUI/SUPERVGUI_ArrayView.cxx b/src/SUPERVGUI/SUPERVGUI_ArrayView.cxx index b2b0309..63d7ac2 100644 --- a/src/SUPERVGUI/SUPERVGUI_ArrayView.cxx +++ b/src/SUPERVGUI/SUPERVGUI_ArrayView.cxx @@ -95,8 +95,12 @@ void SUPERVGUI_ArrayView::changeBackground() { QColor aColor = QColorDialog::getColor(canvas()->backgroundColor(), this ); if ( aColor.isValid() ) { + // change background color for array view canvas()->setBackgroundColor(aColor); setPaletteBackgroundColor(aColor.light(120)); + // change background color for canvas view + getMain()->getCanvasView()->canvas()->setBackgroundColor(aColor); + getMain()->getCanvasView()->setPaletteBackgroundColor(aColor.light(120)); } } diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasView.cxx b/src/SUPERVGUI/SUPERVGUI_CanvasView.cxx index 19358bd..7495b39 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasView.cxx +++ b/src/SUPERVGUI/SUPERVGUI_CanvasView.cxx @@ -556,8 +556,12 @@ void SUPERVGUI_CanvasView::changeBackground() { QColor aColor = QColorDialog::getColor(canvas()->backgroundColor(), this ); if ( aColor.isValid() ) { + // change background color for canvas view canvas()->setBackgroundColor(aColor); setPaletteBackgroundColor(aColor.light(120)); + // change background color for array view + getMain()->getArrayView()->canvas()->setBackgroundColor(aColor); + getMain()->getArrayView()->setPaletteBackgroundColor(aColor.light(120)); } }