]> git.sesse.net Git - vlc/commitdiff
Qt4 - Playlist: double clicking on the art will open the Media Information dialog.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 16 Jan 2008 07:37:45 +0000 (07:37 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 16 Jan 2008 07:37:45 +0000 (07:37 +0000)
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/playlist.hpp

index 0b4d1dd58387e1da12c98ddac0e7642128909384..b76614f7ab83d997dd0f6d670de50eafb3d43482 100644 (file)
@@ -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 */
index fb6df60b6180fa2fe8de2602a0fae22bd2bcd155..022547d9dacc13af899d72b43d291f87a9362762 100644 (file)
 
 #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