QskProgressIndicator::hasOrigin(), QskSlider::hasOrigin added

This commit is contained in:
Uwe Rathmann 2024-11-29 09:42:01 +01:00
parent 12dfac153d
commit a58d6dd589
4 changed files with 12 additions and 0 deletions

View File

@ -189,6 +189,11 @@ qreal QskProgressIndicator::origin() const
return minimum(); return minimum();
} }
bool QskProgressIndicator::hasOrigin() const
{
return m_data->hasOrigin;
}
void QskProgressIndicator::setValue( qreal value ) void QskProgressIndicator::setValue( qreal value )
{ {
if ( isComponentComplete() ) if ( isComponentComplete() )

View File

@ -51,6 +51,7 @@ class QSK_EXPORT QskProgressIndicator : public QskBoundedControl
void resetOrigin(); void resetOrigin();
qreal origin() const; qreal origin() const;
bool hasOrigin() const;
qreal value() const; qreal value() const;
qreal valueAsRatio() const; // [0.0, 1.0] qreal valueAsRatio() const; // [0.0, 1.0]

View File

@ -192,6 +192,11 @@ qreal QskSlider::origin() const
return minimum(); return minimum();
} }
bool QskSlider::hasOrigin() const
{
return m_data->hasOrigin;
}
QskAspect::Variation QskSlider::effectiveVariation() const QskAspect::Variation QskSlider::effectiveVariation() const
{ {
return static_cast< QskAspect::Variation >( m_data->orientation ); return static_cast< QskAspect::Variation >( m_data->orientation );

View File

@ -44,6 +44,7 @@ class QSK_EXPORT QskSlider : public QskBoundedValueInput
void resetOrigin(); void resetOrigin();
qreal origin() const; qreal origin() const;
bool hasOrigin() const;
void setTracking( bool ); void setTracking( bool );
bool isTracking() const; bool isTracking() const;