]> git.sesse.net Git - vlc/commitdiff
Qt4 - Playlist: fix the resizing of the QSPlitter containing the art.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 21 Feb 2008 09:28:31 +0000 (09:28 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 21 Feb 2008 09:28:31 +0000 (09:28 +0000)
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/selector.cpp

index b23cb91d906e9838078240a5ee54c998f4cf69b3..a56bb85b2586796393702789052ef74357be24ce 100644 (file)
@@ -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 <zorglub@videolan.org>
@@ -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 <QSettings>
 #include <QLabel>
@@ -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 =
index b8a68b2d020b2904f099849b72309384c81113ff..d3e561caa2c8f0c4658df91bf764b27bd8dccc73 100644 (file)
@@ -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