[vlc-commits] Qt: correctly clear the info panel cover Art

Jean-Baptiste Kempf git at videolan.org
Fri Jan 25 16:28:37 CET 2013


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jan 25 16:24:20 2013 +0100| [31c1c4d4efb29c748488b44f9a9379a1d06e67ee] | committer: Jean-Baptiste Kempf

Qt: correctly clear the info panel cover Art

Manual cherry-pick of 2ea0e546475dac1dd9032a06937966ed3d115ca9

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

 modules/gui/qt4/components/info_panels.cpp       |    1 +
 modules/gui/qt4/components/interface_widgets.cpp |    5 +++++
 modules/gui/qt4/components/interface_widgets.hpp |    1 +
 3 files changed, 7 insertions(+)

diff --git a/modules/gui/qt4/components/info_panels.cpp b/modules/gui/qt4/components/info_panels.cpp
index 5e433b2..cbdf156 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -327,6 +327,7 @@ void MetaPanel::clear()
     nowplaying_text->clear();
     publisher_text->clear();
     encodedby_text->clear();
+    art_cover->clear();
 
     setEditMode( false );
     emit uriSet( "" );
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 3fa5956..b10ec6a 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -556,6 +556,11 @@ void CoverArtLabel::askForUpdate()
     THEMIM->getIM()->requestArtUpdate();
 }
 
+void CoverArtLabel::clear()
+{
+    showArtUpdate( "" );
+}
+
 TimeLabel::TimeLabel( intf_thread_t *_p_intf, TimeLabel::Display _displayType  )
     : QLabel(), p_intf( _p_intf ), bufTimer( new QTimer(this) ),
       buffering( false ), showBuffering(false), bufVal( -1 ), displayType( _displayType )
diff --git a/modules/gui/qt4/components/interface_widgets.hpp b/modules/gui/qt4/components/interface_widgets.hpp
index cd95276..72ce295 100644
--- a/modules/gui/qt4/components/interface_widgets.hpp
+++ b/modules/gui/qt4/components/interface_widgets.hpp
@@ -238,6 +238,7 @@ public slots:
         requestUpdate();
     }
     void showArtUpdate( const QString& );
+    void clear();
 
 private slots:
     void askForUpdate();



More information about the vlc-commits mailing list