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

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