[vlc-commits] commit: Qt: fix updating of album art on BackgroundWidget (Jakob Leben )

git at videolan.org git at videolan.org
Sun Mar 28 19:40:42 CEST 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Sun Mar 28 19:30:35 2010 +0200| [6879a5ec612d0640da054583b03c00fc65e82cef] | committer: Jakob Leben 

Qt: fix updating of album art on BackgroundWidget

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6879a5ec612d0640da054583b03c00fc65e82cef
---

 modules/gui/qt4/components/interface_widgets.cpp |    7 +------
 modules/gui/qt4/components/interface_widgets.hpp |    1 -
 2 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index ec5f29e..81bafb3 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -291,12 +291,6 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
              this, updateArt( const QString& ) );
 }
 
-void BackgroundWidget::resizeEvent( QResizeEvent * event )
-{
-    updateArt( "" );
-    QWidget::resizeEvent( event );
-}
-
 void BackgroundWidget::updateArt( const QString& url )
 {
     if ( !url.isEmpty() )
@@ -310,6 +304,7 @@ void BackgroundWidget::updateArt( const QString& url )
         else
             pixmapUrl = QString( ":/logo/vlc128.png" );
     }
+    update();
 }
 
 void BackgroundWidget::paintEvent( QPaintEvent *e )
diff --git a/modules/gui/qt4/components/interface_widgets.hpp b/modules/gui/qt4/components/interface_widgets.hpp
index 9f46f10..cd3eb68 100644
--- a/modules/gui/qt4/components/interface_widgets.hpp
+++ b/modules/gui/qt4/components/interface_widgets.hpp
@@ -95,7 +95,6 @@ private:
     bool b_expandPixmap;
     virtual void contextMenuEvent( QContextMenuEvent *event );
     intf_thread_t *p_intf;
-    virtual void resizeEvent( QResizeEvent * event );
 protected:
     void paintEvent( QPaintEvent *e );
     static const int MARGIN = 5;



More information about the vlc-commits mailing list