From d6ae9084804effe3848430d8dae7c41061987c65 Mon Sep 17 00:00:00 2001 From: mkr Date: Thu, 7 Jul 2005 12:46:47 +0000 Subject: [PATCH] Fix for bug IPAL9241 : Changing view mode of the dataflow changes background color (according to the last comment from akk). --- src/SUPERVGUI/SUPERVGUI_ArrayView.cxx | 4 ++++ src/SUPERVGUI/SUPERVGUI_CanvasView.cxx | 4 ++++ 2 files changed, 8 insertions(+) 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)); } } -- 2.39.2