[vlc-commits] Qt4: add slider to adjust playlist scaling

Ilkka Ollakka git at videolan.org
Thu Jul 7 15:46:54 CEST 2011


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Jul  7 16:45:15 2011 +0300| [bf9408fbb5daac7c12427030eebe576f25f07c62] | committer: Ilkka Ollakka

Qt4: add slider to adjust playlist scaling

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

 modules/gui/qt4/components/playlist/playlist.cpp |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp
index 6fe4bb9..4a07c8a 100644
--- a/modules/gui/qt4/components/playlist/playlist.cpp
+++ b/modules/gui/qt4/components/playlist/playlist.cpp
@@ -40,6 +40,7 @@
 
 #include <QMenu>
 #include <QSignalMapper>
+#include <QSlider>
 
 /**********************************************************************
  * Playlist Widget. The embedded playlist
@@ -178,6 +179,16 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
     getSettings()->endGroup();
 
     layout->addWidget( split, 1, 0, 1, -1 );
+
+    /* Zoom */
+    QSlider *zoomSlider = new QSlider( Qt::Horizontal, this );
+    zoomSlider->setRange( -10, 10);
+    zoomSlider->setPageStep( 3 );
+    zoomSlider->setValue( model->getZoom() );
+    CONNECT( zoomSlider, valueChanged( int ), model, changeZoom( int ) );
+
+    layout->addWidget( zoomSlider, 1, 3, ( Qt::AlignBottom | Qt::AlignRight ) );
+
     setAcceptDrops( true );
     setWindowTitle( qtr( "Playlist" ) );
     setWindowRole( "vlc-playlist" );



More information about the vlc-commits mailing list