]> git.sesse.net Git - vlc/commitdiff
Qt: fix updating of album art on BackgroundWidget
authorJakob Leben <jleben@videolan.org>
Sun, 28 Mar 2010 17:30:35 +0000 (19:30 +0200)
committerJakob Leben <jleben@videolan.org>
Sun, 28 Mar 2010 17:33:02 +0000 (19:33 +0200)
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.hpp

index ec5f29e9c24e851446ae03769c3eb4a78215496d..81bafb3adafe472d6c09342d5fc086fcfa307047 100644 (file)
@@ -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 )
index 9f46f10f58f82d69cff2355b5aca5652f66f7e11..cd3eb68accef42b4ace12bae99858c9d25691f22 100644 (file)
@@ -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;