From: apo Date: Fri, 3 Nov 2006 12:18:05 +0000 (+0000) Subject: To fix a problem with reseting of timestamp number on reactivation selection X-Git-Tag: WP1_2_3_06-10-2006~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3e32c812a501ca6617751de968d9ef1c35046275;p=modules%2Fvisu.git To fix a problem with reseting of timestamp number on reactivation selection --- diff --git a/src/VISUGUI/VisuGUI_Slider.cxx b/src/VISUGUI/VisuGUI_Slider.cxx index c295fe52..bf983a10 100644 --- a/src/VISUGUI/VisuGUI_Slider.cxx +++ b/src/VISUGUI/VisuGUI_Slider.cxx @@ -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 ) );