[vlc-commits] Qt: do not block the video preview to a very small size in the playlist

Jean-Baptiste Kempf git at videolan.org
Wed Jun 20 18:28:40 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jun 20 20:27:34 2012 +0200| [a23142417941223b0068ad5b6f38a79eb9a96e93] | committer: Jean-Baptiste Kempf

Qt: do not block the video preview to a very small size in the playlist

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a23142417941223b0068ad5b6f38a79eb9a96e93
---

 modules/gui/qt4/components/interface_widgets.cpp |    2 --
 modules/gui/qt4/components/playlist/playlist.cpp |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index e3c844b..ee2a5ca 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -511,11 +511,9 @@ CoverArtLabel::CoverArtLabel( QWidget *parent, intf_thread_t *_p_i )
 
     setMinimumHeight( 128 );
     setMinimumWidth( 128 );
-    setMaximumHeight( 128 );
     setScaledContents( false );
     setAlignment( Qt::AlignCenter );
 
-    QList< QAction* > artActions = actions();
     QAction *action = new QAction( qtr( "Download cover art" ), this );
     CONNECT( action, triggered(), this, askForUpdate() );
     addAction( action );
diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp
index 919fe95..9655e33 100644
--- a/modules/gui/qt4/components/playlist/playlist.cpp
+++ b/modules/gui/qt4/components/playlist/playlist.cpp
@@ -69,7 +69,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
     /* Create a Container for the Art Label
        in order to have a beautiful resizing for the selector above it */
     artContainer = new QStackedWidget;
-    artContainer->setMaximumHeight( 128 );
+    artContainer->setMaximumHeight( 256 );
 
     /* Art label */
     CoverArtLabel *art = new CoverArtLabel( artContainer, p_intf );



More information about the vlc-commits mailing list