From e9a33e3ed48612a32338b5734080223df011a421 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 7 Jun 2013 09:09:29 +0200 Subject: [PATCH] * Start animating the gauge with value 1. --- src/libtomahawk/widgets/StatsGauge.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/widgets/StatsGauge.cpp b/src/libtomahawk/widgets/StatsGauge.cpp index 64b308c91..9d52a7655 100644 --- a/src/libtomahawk/widgets/StatsGauge.cpp +++ b/src/libtomahawk/widgets/StatsGauge.cpp @@ -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 );