Commit 6879a5ec authored by Jakob Leben's avatar Jakob Leben

Qt: fix updating of album art on BackgroundWidget

parent e472ee3c
...@@ -291,12 +291,6 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) ...@@ -291,12 +291,6 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
this, updateArt( const QString& ) ); this, updateArt( const QString& ) );
} }
void BackgroundWidget::resizeEvent( QResizeEvent * event )
{
updateArt( "" );
QWidget::resizeEvent( event );
}
void BackgroundWidget::updateArt( const QString& url ) void BackgroundWidget::updateArt( const QString& url )
{ {
if ( !url.isEmpty() ) if ( !url.isEmpty() )
...@@ -310,6 +304,7 @@ void BackgroundWidget::updateArt( const QString& url ) ...@@ -310,6 +304,7 @@ void BackgroundWidget::updateArt( const QString& url )
else else
pixmapUrl = QString( ":/logo/vlc128.png" ); pixmapUrl = QString( ":/logo/vlc128.png" );
} }
update();
} }
void BackgroundWidget::paintEvent( QPaintEvent *e ) void BackgroundWidget::paintEvent( QPaintEvent *e )
......
...@@ -95,7 +95,6 @@ private: ...@@ -95,7 +95,6 @@ private:
bool b_expandPixmap; bool b_expandPixmap;
virtual void contextMenuEvent( QContextMenuEvent *event ); virtual void contextMenuEvent( QContextMenuEvent *event );
intf_thread_t *p_intf; intf_thread_t *p_intf;
virtual void resizeEvent( QResizeEvent * event );
protected: protected:
void paintEvent( QPaintEvent *e ); void paintEvent( QPaintEvent *e );
static const int MARGIN = 5; static const int MARGIN = 5;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment