Commit d3803618 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Playlist code: simplification, part 1

parent 99ab417d
...@@ -45,20 +45,13 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par ) ...@@ -45,20 +45,13 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
{ {
setContentsMargins( 3, 3, 3, 3 ); setContentsMargins( 3, 3, 3, 3 );
/* Left Part and design */ /* We use a QSplitter for the left part*/
leftSplitter = new QSplitter( Qt::Vertical, this ); leftSplitter = new QSplitter( Qt::Vertical, this );
/* Source Selector */ /* Source Selector */
selector = new PLSelector( this, p_intf ); selector = new PLSelector( this, p_intf );
QVBoxLayout *selBox = new QVBoxLayout(); leftSplitter->addWidget( selector);
selBox->setContentsMargins(0,0,0,0);
selBox->setSpacing( 0 );
selBox->addWidget( selector );
QWidget *mediaBrowser = new QWidget();
mediaBrowser->setLayout( selBox );
leftSplitter->addWidget( mediaBrowser );
/* Create a Container for the Art Label /* Create a Container for the Art Label
in order to have a beautiful resizing for the selector above it */ in order to have a beautiful resizing for the selector above it */
...@@ -83,7 +76,6 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par ) ...@@ -83,7 +76,6 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
playlist_t * p_playlist = THEPL; playlist_t * p_playlist = THEPL;
PL_LOCK; PL_LOCK;
playlist_item_t *p_root = THEPL->p_playing; playlist_item_t *p_root = THEPL->p_playing;
PL_UNLOCK; PL_UNLOCK;
rightPanel = new StandardPLPanel( this, p_intf, THEPL, p_root, selector ); rightPanel = new StandardPLPanel( this, p_intf, THEPL, p_root, selector );
......
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