QskSlider using the decimals property for the value label

This commit is contained in:
Uwe Rathmann 2024-10-23 11:18:25 +02:00
parent b53f60dd0e
commit b19515c801
2 changed files with 0 additions and 11 deletions

View File

@ -9,8 +9,6 @@
#include "QskIntervalF.h"
#include "QskEvent.h"
#include <qlocale.h>
QSK_SUBCONTROL( QskSlider, Panel )
QSK_SUBCONTROL( QskSlider, Groove )
QSK_SUBCONTROL( QskSlider, Fill )
@ -263,12 +261,4 @@ void QskSlider::moveHandleTo( qreal value, const QskAnimationHint& hint )
update();
}
QString QskSlider::textFromValue( qreal value ) const
{
#if 1
// we could try to find the precision from the step size. TODO ...
return locale().toString( value, 'f', 1 );
#endif
}
#include "moc_QskSlider.cpp"

View File

@ -45,7 +45,6 @@ class QSK_EXPORT QskSlider : public QskBoundedValueInput
qreal handlePosition() const; // [0,0, 1.0]
QskAspect::Variation effectiveVariation() const override;
QString textFromValue( qreal ) const override;
Q_SIGNALS:
void pressedChanged( bool );