[vlc-commits] Qt: limit size of playlist display

Jean-Baptiste Kempf git at videolan.org
Mon Aug 27 19:58:02 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Aug 27 19:57:45 2012 +0200| [a781db31ec5220b2b6ce8cc9910c6f776741ef83] | committer: Jean-Baptiste Kempf

Qt: limit size of playlist display

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

 modules/gui/qt4/components/playlist/standardpanel.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index e4e71d1..919309f 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -579,7 +579,8 @@ void StandardPLPanel::createTreeView()
 
 void StandardPLPanel::updateZoom( int i )
 {
-    if ( i < 4 - QApplication::font().pointSize() ) return;
+    if ( i < 5 - QApplication::font().pointSize() ) return;
+    if ( i > 3 + QApplication::font().pointSize() ) return;
     i_zoom = i;
 #define A_ZOOM( view ) \
     if ( view ) \



More information about the vlc-commits mailing list