1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 16:14:40 +02:00

Revert "Put "out of %1" under the big number in StatsGauge"

This reverts commit 5634f5a4ca.
This commit is contained in:
Christian Muehlhaeuser
2013-06-21 22:33:34 +02:00
parent 8e96396b4b
commit 67a2062a30

View File

@@ -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() )