From 67a2062a308c25cf888c0b74f6b49d329de4a0d5 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 21 Jun 2013 22:33:34 +0200 Subject: [PATCH] Revert "Put "out of %1" under the big number in StatsGauge" This reverts commit 5634f5a4ca0515d164c76e45bfa689a34ade5cad. --- src/libtomahawk/widgets/StatsGauge.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/widgets/StatsGauge.cpp b/src/libtomahawk/widgets/StatsGauge.cpp index 2b7390fc1..d5d51cb84 100644 --- a/src/libtomahawk/widgets/StatsGauge.cpp +++ b/src/libtomahawk/widgets/StatsGauge.cpp @@ -81,7 +81,7 @@ StatsGauge::paintEvent( QPaintEvent* event ) font.setPixelSize( 44 ); p.setFont( font ); - QRect textRect( 0, gaugeSize.height() / 2 - 44, gaugeSize.width(), 62 ); + QRect textRect( 0, gaugeSize.height() / 2 - 14, gaugeSize.width(), 62 ); p.drawText( textRect, Qt::AlignCenter, value() > 0 ? QString::number( value() ) : "-" ); pen = QPen( TomahawkStyle::HEADER_GAUGE_TEXT.darker() ); @@ -91,7 +91,7 @@ StatsGauge::paintEvent( QPaintEvent* event ) font.setPixelSize( 16 ); p.setFont( font ); - textRect = QRect( 0, gaugeSize.height() / 2 + 22, gaugeSize.width(), 20 ); + textRect = QRect( 0, gaugeSize.height() / 2 - 32, gaugeSize.width(), 20 ); p.drawText( textRect, Qt::AlignCenter, maximum() > 0 ? tr( "out of %1" ).arg( maximum() ) : "-" ); if ( !m_text.isEmpty() )