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

Qt4 - Playlist: fix the resizing of the QSPlitter containing the art.

parent 24fcfe47
/***************************************************************************** /*****************************************************************************
* playlist.cpp : Custom widgets for the playlist * playlist.cpp : Custom widgets for the playlist
**************************************************************************** ****************************************************************************
* Copyright © 2006 the VideoLAN team * Copyright © 2007-2008 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Clément Stenac <zorglub@videolan.org> * Authors: Clément Stenac <zorglub@videolan.org>
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
...@@ -28,7 +29,7 @@ ...@@ -28,7 +29,7 @@
#include "components/playlist/panels.hpp" #include "components/playlist/panels.hpp"
#include "components/playlist/selector.hpp" #include "components/playlist/selector.hpp"
#include "components/playlist/playlist.hpp" #include "components/playlist/playlist.hpp"
#include "input_manager.hpp" /* art */ #include "input_manager.hpp" /* art signal */
#include <QSettings> #include <QSettings>
#include <QLabel> #include <QLabel>
...@@ -51,6 +52,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge ...@@ -51,6 +52,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge
selector = new PLSelector( this, p_intf, THEPL ); selector = new PLSelector( this, p_intf, THEPL );
leftW->addWidget( selector ); leftW->addWidget( selector );
QWidget *artContainer = new QWidget;
QHBoxLayout *artContLay = new QHBoxLayout( artContainer );
/* Art label */ /* Art label */
art = new ArtLabel; art = new ArtLabel;
art->setMinimumHeight( 128 ); art->setMinimumHeight( 128 );
...@@ -60,7 +64,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge ...@@ -60,7 +64,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge
art->setScaledContents( true ); art->setScaledContents( true );
art->setPixmap( QPixmap( ":/noart.png" ) ); art->setPixmap( QPixmap( ":/noart.png" ) );
art->setToolTip( qtr( "Double click to get the media informations" ) ); art->setToolTip( qtr( "Double click to get the media informations" ) );
leftW->addWidget( art ); artContLay->addWidget( art, 1 );
leftW->addWidget( artContainer );
/* Initialisation of the playlist */ /* Initialisation of the playlist */
playlist_item_t *p_root = playlist_item_t *p_root =
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
......
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