mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Add support for binary resolver source icons
This commit is contained in:
BIN
data/images/spotify-sourceicon.png
Normal file
BIN
data/images/spotify-sourceicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
@@ -156,5 +156,6 @@
|
|||||||
<file>data/images/exfm.png</file>
|
<file>data/images/exfm.png</file>
|
||||||
<file>data/images/soundcloud.png</file>
|
<file>data/images/soundcloud.png</file>
|
||||||
<file>data/images/resolver-default.png</file>
|
<file>data/images/resolver-default.png</file>
|
||||||
|
<file>data/images/spotify-sourceicon.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@@ -399,7 +399,6 @@ AtticaManager::binaryResolversList( BaseJob* j )
|
|||||||
|
|
||||||
Content::List binaryResolvers = job->itemList();
|
Content::List binaryResolvers = job->itemList();
|
||||||
|
|
||||||
// NOTE: No binary support for linux distros
|
|
||||||
QString platform;
|
QString platform;
|
||||||
#if defined(Q_OS_MAC)
|
#if defined(Q_OS_MAC)
|
||||||
platform = "osx";
|
platform = "osx";
|
||||||
|
@@ -217,6 +217,7 @@ SpotifyAccount::hookupResolver()
|
|||||||
// 0.4.x->0.5.x upgrade. So we do it manually for a while
|
// 0.4.x->0.5.x upgrade. So we do it manually for a while
|
||||||
killExistingResolvers();
|
killExistingResolvers();
|
||||||
m_spotifyResolver = QWeakPointer< ScriptResolver >( qobject_cast< ScriptResolver* >( Pipeline::instance()->addScriptResolver( path ) ) );
|
m_spotifyResolver = QWeakPointer< ScriptResolver >( qobject_cast< ScriptResolver* >( Pipeline::instance()->addScriptResolver( path ) ) );
|
||||||
|
m_spotifyResolver.data()->setIcon( QPixmap( RESPATH "images/spotify-sourceicon.png" ) );
|
||||||
|
|
||||||
connect( m_spotifyResolver.data(), SIGNAL( changed() ), this, SLOT( resolverChanged() ) );
|
connect( m_spotifyResolver.data(), SIGNAL( changed() ), this, SLOT( resolverChanged() ) );
|
||||||
connect( m_spotifyResolver.data(), SIGNAL( customMessage( QString,QVariantMap ) ), this, SLOT( resolverMessage( QString, QVariantMap ) ) );
|
connect( m_spotifyResolver.data(), SIGNAL( customMessage( QString,QVariantMap ) ), this, SLOT( resolverMessage( QString, QVariantMap ) ) );
|
||||||
|
@@ -486,6 +486,13 @@ ScriptResolver::saveConfig()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ScriptResolver::setIcon( const QPixmap& icon )
|
||||||
|
{
|
||||||
|
m_icon = icon;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
QWidget*
|
QWidget*
|
||||||
ScriptResolver::configUI() const
|
ScriptResolver::configUI() const
|
||||||
{
|
{
|
||||||
|
@@ -47,6 +47,8 @@ public:
|
|||||||
virtual unsigned int preference() const { return m_preference; }
|
virtual unsigned int preference() const { return m_preference; }
|
||||||
virtual unsigned int timeout() const { return m_timeout; }
|
virtual unsigned int timeout() const { return m_timeout; }
|
||||||
|
|
||||||
|
virtual void setIcon( const QPixmap& icon );
|
||||||
|
|
||||||
virtual QWidget* configUI() const;
|
virtual QWidget* configUI() const;
|
||||||
virtual void saveConfig();
|
virtual void saveConfig();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user