Commit a4d3bb46 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt4 - Playlist: double clicking on the art will open the Media Information dialog.

parent dc651adb
......@@ -49,13 +49,14 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge
leftW->addWidget( selector );
/* Art label */
art = new QLabel( "" );
art = new ArtLabel;
art->setMinimumHeight( 128 );
art->setMinimumWidth( 128 );
art->setMaximumHeight( 128 );
art->setMaximumWidth( 128 );
art->setScaledContents( true );
art->setPixmap( QPixmap( ":/noart.png" ) );
art->setToolTip( qtr( "Double click to get the media informations" ) );
leftW->addWidget( art );
/* Initialisation of the playlist */
......
......@@ -28,10 +28,11 @@
#include <vlc/vlc.h>
#include "qt4.hpp"
#include "dialogs_provider.hpp"
#include <QSplitter>
#include <QLabel>
class QLabel;
class PLSelector;
class PLPanel;
class QPushButton;
......@@ -61,4 +62,14 @@ signals:
void artSet( QString );
};
class ArtLabel : public QLabel
{
Q_OBJECT
void mouseDoubleClickEvent( QMouseEvent *event )
{
THEDP->mediaInfoDialog();
}
};
#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