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 )
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 )
......
......@@ -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;
......
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