From dc1a69f87fd4b6b2ebe1723aed6ef65082e2d61b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 21 Feb 2008 09:28:31 +0000 Subject: [PATCH] Qt4 - Playlist: fix the resizing of the QSPlitter containing the art. --- modules/gui/qt4/components/playlist/playlist.cpp | 12 +++++++++--- modules/gui/qt4/components/playlist/selector.cpp | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp index b23cb91d90..a56bb85b25 100644 --- a/modules/gui/qt4/components/playlist/playlist.cpp +++ b/modules/gui/qt4/components/playlist/playlist.cpp @@ -1,7 +1,7 @@ /***************************************************************************** * playlist.cpp : Custom widgets for the playlist **************************************************************************** - * Copyright © 2006 the VideoLAN team + * Copyright © 2007-2008 the VideoLAN team * $Id$ * * Authors: Clément Stenac @@ -21,6 +21,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ + #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -28,7 +29,7 @@ #include "components/playlist/panels.hpp" #include "components/playlist/selector.hpp" #include "components/playlist/playlist.hpp" -#include "input_manager.hpp" /* art */ +#include "input_manager.hpp" /* art signal */ #include #include @@ -51,6 +52,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge selector = new PLSelector( this, p_intf, THEPL ); leftW->addWidget( selector ); + QWidget *artContainer = new QWidget; + QHBoxLayout *artContLay = new QHBoxLayout( artContainer ); + /* Art label */ art = new ArtLabel; art->setMinimumHeight( 128 ); @@ -60,7 +64,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge art->setScaledContents( true ); art->setPixmap( QPixmap( ":/noart.png" ) ); art->setToolTip( qtr( "Double click to get the media informations" ) ); - leftW->addWidget( art ); + artContLay->addWidget( art, 1 ); + + leftW->addWidget( artContainer ); /* Initialisation of the playlist */ playlist_item_t *p_root = diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp index b8a68b2d02..d3e561caa2 100644 --- a/modules/gui/qt4/components/playlist/selector.cpp +++ b/modules/gui/qt4/components/playlist/selector.cpp @@ -20,6 +20,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ + #ifdef HAVE_CONFIG_H # include "config.h" #endif -- 2.39.5