Commit bf9408fb authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: add slider to adjust playlist scaling

parent bdd0c1e1
......@@ -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" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment