[vlc-commits] commit: Revert "qt4: don't force pixelsize in soundslider" (Ilkka Ollakka )

git at videolan.org git at videolan.org
Tue Jun 15 21:48:45 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Jun 15 22:45:53 2010 +0300| [3d7a2bdf6cc0fea4744ac0c4421c78ab178000cd] | committer: Ilkka Ollakka 

Revert "qt4: don't force pixelsize in soundslider"

This reverts commit 770f3c56899da1bd79501cb5cc383beb727ea525.
This reverts commit eaf749979dac4eb9d2148bf18d3d48803bafcd8a.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d7a2bdf6cc0fea4744ac0c4421c78ab178000cd
---

 modules/gui/qt4/util/input_slider.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp
index 1b94d66..19f6ad7 100644
--- a/modules/gui/qt4/util/input_slider.cpp
+++ b/modules/gui/qt4/util/input_slider.cpp
@@ -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() ) + '%' );
 



More information about the vlc-commits mailing list