]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To fix a problem with reseting of timestamp number on reactivation selection
authorapo <apo@opencascade.com>
Fri, 3 Nov 2006 12:18:05 +0000 (12:18 +0000)
committerapo <apo@opencascade.com>
Fri, 3 Nov 2006 12:18:05 +0000 (12:18 +0000)
src/VISUGUI/VisuGUI_Slider.cxx

index c295fe5255c0655cb8986b4932f11089daa2ebe7..bf983a10dd2ebaa0de72a50bdbd3a88b312e4afb 100644 (file)
@@ -173,11 +173,11 @@ VisuGUI_Slider::~VisuGUI_Slider()
 
 void VisuGUI_Slider::enableControls( bool on )
 {
-  myTimeStampStrings->clear();
-  myTimeStampIndices->clear();
-  mySlider->setMinValue( 0 );
-  mySlider->setMaxValue( 0 );
-  mySlider->setValue( 0 );
+  //myTimeStampStrings->clear();
+  //myTimeStampIndices->clear();
+  //mySlider->setMinValue( 0 );
+  //mySlider->setMaxValue( 0 );
+  //mySlider->setValue( 0 );
 
   if( on )
   {
@@ -199,7 +199,7 @@ void VisuGUI_Slider::enableControls( bool on )
     {
       VISU::ColoredPrs3d::TimeStampInfo anInfo = aTimeStampsRange[ index ];
       long aNumber = anInfo.myNumber;
-      const char* aTime = anInfo.myTime.in();
+      QString aTime = anInfo.myTime.in();
 
       myTimeStampStrings->insertItem( aTime );
       myTimeStampIndices->insertItem( QString::number( aNumber ) );