mySlider->setSingleStep( 1 );
mySlider->setPageStep( 10 );
//mySlider->setValue( 5 );
+ mySlider->setTracking(false);
mySlider->setTickPosition( QSlider::TicksLeft );
GroupC1Layout->addWidget( mySlider, 1, 0, 1, 3 );
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonHelp, SIGNAL(clicked()), this, SLOT(ClickOnHelp()));
connect(mySlider, SIGNAL(valueChanged(int)), this, SLOT(SetTransparency()));
- connect(mySlider, SIGNAL(sliderMoved(int)), this, SLOT(ValueHasChanged()));
+ connect(mySlider, SIGNAL(sliderMoved(int)), this, SLOT(SliderHasMoved(int)));
}
myValueLab->setText( QString("%1%").arg( mySlider->value() ) );
}
+//=================================================================================
+// function : SliderHasMoved()
+// purpose : Called when value of slider change
+//=================================================================================
+void GEOMToolsGUI_TransparencyDlg::SliderHasMoved(int value)
+{
+ myValueLab->setText( QString("%1%").arg( value ) );
+}
+
//=================================================================================
// function : SetTransparency()
// purpose : Called when value of slider change