[vlc-commits] Qt: correctly clear the info panel cover Art
Jean-Baptiste Kempf
git at videolan.org
Fri Jan 25 16:16:16 CET 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jan 25 16:15:26 2013 +0100| [2ea0e546475dac1dd9032a06937966ed3d115ca9] | committer: Jean-Baptiste Kempf
Qt: correctly clear the info panel cover Art
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ea0e546475dac1dd9032a06937966ed3d115ca9
---
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 7df44b2..5045ef1 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -335,6 +335,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 5c86063..e91d526 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -722,6 +722,11 @@ void CoverArtLabel::setArtFromFile()
THEMIM->getIM()->setArt( p_item, fileUrl );
}
+void CoverArtLabel::clear()
+{
+ showArtUpdate( "" );
+}
+
TimeLabel::TimeLabel( intf_thread_t *_p_intf, TimeLabel::Display _displayType )
: ClickableQLabel(), 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 118264f..27d9873 100644
--- a/modules/gui/qt4/components/interface_widgets.hpp
+++ b/modules/gui/qt4/components/interface_widgets.hpp
@@ -289,6 +289,7 @@ public slots:
void showArtUpdate( input_item_t * );
void askForUpdate();
void setArtFromFile();
+ void clear();
};
#endif
More information about the vlc-commits
mailing list