1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

* Start animating the gauge with value 1.

This commit is contained in:
Christian Muehlhaeuser 2013-06-07 09:09:29 +02:00
parent aca501096f
commit 02d3f7c55f

View File

@ -91,8 +91,8 @@ StatsGauge::paintEvent( QPaintEvent* event )
pen = QPen( Qt::white );
p.setPen( pen );
font = p.font();
font.setWeight( QFont::Black );
font.setPixelSize( 18 );
font.setWeight( QFont::DemiBold );
font.setPixelSize( 16 );
p.setFont( font );
QColor figColor( "#3e3e3e" );
@ -112,7 +112,7 @@ StatsGauge::setValue( int v )
{
QPropertyAnimation* a = new QPropertyAnimation( (QProgressBar*)this, "value" );
a->setEasingCurve( QEasingCurve( QEasingCurve::InOutQuad ) );
a->setStartValue( value() );
a->setStartValue( value() > 0 ? value() : 1 );
a->setEndValue( v );
a->setDuration( 2000 );