X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fplaylist%2Fplaylist.cpp;h=2337ed91337fa71ca5ea27d541225a8f8703dc61;hb=fc583e2c34cee848250fa06572b037bb54ed915f;hp=296d117d1131341c7db2af300def2e109ae7f168;hpb=554f76adfa055ffac630de9d06bb7caae6c4c146;p=vlc diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp index 296d117d11..2337ed9133 100644 --- a/modules/gui/qt4/components/playlist/playlist.cpp +++ b/modules/gui/qt4/components/playlist/playlist.cpp @@ -41,6 +41,7 @@ #include #include #include +#include /********************************************************************** * Playlist Widget. The embedded playlist @@ -67,16 +68,13 @@ 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 */ - QWidget *artContainer = new QWidget; - QHBoxLayout *artContLay = new QHBoxLayout( artContainer ); - artContLay->setMargin( 0 ); - artContLay->setSpacing( 0 ); + artContainer = new QStackedWidget; artContainer->setMaximumHeight( 128 ); /* Art label */ CoverArtLabel *art = new CoverArtLabel( artContainer, p_intf ); art->setToolTip( qtr( "Double click to get media information" ) ); - artContLay->addWidget( art, 1 ); + artContainer->addWidget( art ); CONNECT( THEMIM->getIM(), artChanged( QString ), art, showArtUpdate( const QString& ) );