]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Store/restore/dump background color along with the GUI state
authorvsr <vsr@opencascade.com>
Wed, 15 Feb 2012 12:54:48 +0000 (12:54 +0000)
committervsr <vsr@opencascade.com>
Wed, 15 Feb 2012 12:54:48 +0000 (12:54 +0000)
src/Plot2d/Plot2d_ViewFrame.cxx

index ba256d53638eb864a6739542d657e2f89f544908..bb2f8d73db439562019cb7032f1e4f06c93cc775 100755 (executable)
@@ -3316,6 +3316,7 @@ QString Plot2d_ViewFrame::getVisualParameters()
       retStr+=optCurveString;
     }
   }
+  retStr += QString( "*%1" ).arg( Qtx::colorToString( backgroundColor() ) );
   return retStr; 
 }
 
@@ -3401,6 +3402,12 @@ void Plot2d_ViewFrame::setVisualParameters( const QString& parameters )
        addAnalyticalCurve(c);
        updateAnalyticalCurve(c);
       }
+      else if( curveLst.size() == 1 ) {
+       // background color can be set here
+       QColor c;
+       if ( Qtx::stringToColor( paramsLst[i], c ) )
+         setBackgroundColor( c );
+      }
     }
     myPlot->replot();
   }