]> git.sesse.net Git - vlc/commitdiff
Revert "qt4: don't force pixelsize in soundslider"
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 15 Jun 2010 19:45:53 +0000 (22:45 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 15 Jun 2010 19:47:53 +0000 (22:47 +0300)
This reverts commit 770f3c56899da1bd79501cb5cc383beb727ea525.
This reverts commit eaf749979dac4eb9d2148bf18d3d48803bafcd8a.

modules/gui/qt4/util/input_slider.cpp

index 1b94d662ac6111cc6e4530095e5f0da502bdd2fb..19f6ad7e7ee36212a7d5447f72e1dd28ba0016af 100644 (file)
@@ -322,10 +322,9 @@ void SoundSlider::paintEvent( QPaintEvent *e )
     painter.drawPixmap( boundsO, pixOutside, boundsO );
 
     painter.setPen( palette().color( QPalette::Active, QPalette::Mid ) );
-    QFont font;
+    QFont font; font.setPixelSize( 9 );
     painter.setFont( font );
-    QFontMetrics fm = QFontMetrics( font );
-    const QRect rect = fm.boundingRect( QString::number( value() ) + '%' );
+    const QRect rect( 0, 0, 34, 15 );
     painter.drawText( rect, Qt::AlignRight | Qt::AlignVCenter,
                       QString::number( value() ) + '%' );