|
|
|
@ -400,7 +400,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) |
|
|
|
setPalette( plt ); |
|
|
|
|
|
|
|
/* Init the cone art */ |
|
|
|
defaultArt = QString( ":/logo/vlc128.png" ); |
|
|
|
updateDefaultArt( ":/logo/vlc128.png" ); |
|
|
|
updateArt( "" ); |
|
|
|
|
|
|
|
/* fade in animator */ |
|
|
|
@ -415,6 +415,8 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) |
|
|
|
|
|
|
|
CONNECT( THEMIM->getIM(), artChanged( QString ), |
|
|
|
this, updateArt( const QString& ) ); |
|
|
|
CONNECT( THEMIM->getIM(), nameChanged( const QString& ), |
|
|
|
this, titleUpdated( const QString & ) ); |
|
|
|
} |
|
|
|
|
|
|
|
void BackgroundWidget::updateArt( const QString& url ) |
|
|
|
@ -426,6 +428,26 @@ void BackgroundWidget::updateArt( const QString& url ) |
|
|
|
update(); |
|
|
|
} |
|
|
|
|
|
|
|
void BackgroundWidget::updateDefaultArt( const QString& url ) |
|
|
|
{ |
|
|
|
if ( !url.isEmpty() ) |
|
|
|
defaultArt = url; |
|
|
|
update(); |
|
|
|
} |
|
|
|
|
|
|
|
void BackgroundWidget::titleUpdated( const QString& title ) |
|
|
|
{ |
|
|
|
/* don't ask */ |
|
|
|
if( var_InheritBool( p_intf, "qt-icon-change" ) ) |
|
|
|
{ |
|
|
|
int i_pos = title.indexOf( "Ki" /* Bps */ "ll", 0, Qt::CaseInsensitive ); |
|
|
|
if( i_pos != -1 && |
|
|
|
i_pos + 5 == title.indexOf( "Bi" /* directional */ "ll", |
|
|
|
i_pos, Qt::CaseInsensitive ) ) |
|
|
|
updateDefaultArt( ":/logo/vlc128-kb.png" ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void BackgroundWidget::showEvent( QShowEvent * e ) |
|
|
|
{ |
|
|
|
Q_UNUSED( e ); |
|
|
|
|