cenvenience setter added
This commit is contained in:
parent
17f32546fd
commit
1a0ea4a3c4
@ -449,6 +449,12 @@ bool QskSkinnable::movePositionHint( QskAspect aspect, qreal position )
|
||||
return qskMoveMetric( this, aspect | QskAspect::Position, position );
|
||||
}
|
||||
|
||||
bool QskSkinnable::movePositionHint( QskAspect aspect, qreal from, qreal to )
|
||||
{
|
||||
return moveSkinHint( aspect | QskAspect::Metric | QskAspect::Position,
|
||||
QVariant::fromValue( from ), QVariant::fromValue( to ) );
|
||||
}
|
||||
|
||||
bool QskSkinnable::resetPositionHint( QskAspect aspect )
|
||||
{
|
||||
return resetMetric( aspect | QskAspect::Position );
|
||||
|
@ -172,6 +172,7 @@ class QSK_EXPORT QskSkinnable
|
||||
|
||||
bool setPositionHint( QskAspect, qreal );
|
||||
bool movePositionHint( QskAspect, qreal );
|
||||
bool movePositionHint( QskAspect, qreal from, qreal to );
|
||||
bool resetPositionHint( QskAspect );
|
||||
qreal positionHint( QskAspect, QskSkinHintStatus* = nullptr ) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user