]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug IPAL9241 : Changing view mode of the dataflow changes background color...
authormkr <mkr@opencascade.com>
Thu, 7 Jul 2005 12:46:47 +0000 (12:46 +0000)
committermkr <mkr@opencascade.com>
Thu, 7 Jul 2005 12:46:47 +0000 (12:46 +0000)
src/SUPERVGUI/SUPERVGUI_ArrayView.cxx
src/SUPERVGUI/SUPERVGUI_CanvasView.cxx

index b2b0309cdeedef948b0e6b16eb1c59efc15d1b94..63d7ac2e0e91829293ded06e10803a99ebd93795 100644 (file)
@@ -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));
   }
 }
 
index 19358bd76086aee49c334768bb2beca2b7f78e4c..7495b39fdf259f664b5eb31551a6410e67b83dbe 100644 (file)
@@ -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));
   }
 }