mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Style fixes.
This commit is contained in:
@@ -80,6 +80,7 @@ Playlist::Playlist( const source_ptr& author,
|
|||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Playlist::Playlist( const source_ptr& author,
|
Playlist::Playlist( const source_ptr& author,
|
||||||
const QString& guid,
|
const QString& guid,
|
||||||
const QString& title,
|
const QString& title,
|
||||||
@@ -112,6 +113,7 @@ Playlist::~Playlist()
|
|||||||
delete d_ptr;
|
delete d_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QSharedPointer<PlaylistRemovalHandler> Playlist::removalHandler()
|
QSharedPointer<PlaylistRemovalHandler> Playlist::removalHandler()
|
||||||
{
|
{
|
||||||
if ( s_removalHandler.isNull() )
|
if ( s_removalHandler.isNull() )
|
||||||
|
@@ -231,7 +231,7 @@ SpotifyAccount::hookupResolver()
|
|||||||
m_spotifyResolver.data()->setIcon( TomahawkUtils::defaultPixmap( TomahawkUtils::SpotifyIcon ) );
|
m_spotifyResolver.data()->setIcon( TomahawkUtils::defaultPixmap( TomahawkUtils::SpotifyIcon ) );
|
||||||
|
|
||||||
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 ) ) );
|
||||||
connect( ActionCollection::instance(), SIGNAL( privacyModeChanged() ), SLOT( privateModeChanged() ) );
|
connect( ActionCollection::instance(), SIGNAL( privacyModeChanged() ), SLOT( privateModeChanged() ) );
|
||||||
// Always get logged in status
|
// Always get logged in status
|
||||||
QVariantMap msg;
|
QVariantMap msg;
|
||||||
|
@@ -262,7 +262,6 @@ TreeModel::addCollection( const collection_ptr& collection )
|
|||||||
connect( collection.data(), SIGNAL( changed() ), SLOT( onCollectionChanged() ), Qt::UniqueConnection );
|
connect( collection.data(), SIGNAL( changed() ), SLOT( onCollectionChanged() ), Qt::UniqueConnection );
|
||||||
|
|
||||||
setIcon( collection->bigIcon() );
|
setIcon( collection->bigIcon() );
|
||||||
|
|
||||||
setTitle( collection->prettyName() );
|
setTitle( collection->prettyName() );
|
||||||
setDescription( collection->description() );
|
setDescription( collection->description() );
|
||||||
}
|
}
|
||||||
|
@@ -132,6 +132,7 @@ JSResolver::icon() const
|
|||||||
return d->icon;
|
return d->icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
unsigned int
|
unsigned int
|
||||||
JSResolver::weight() const
|
JSResolver::weight() const
|
||||||
{
|
{
|
||||||
@@ -140,6 +141,7 @@ JSResolver::weight() const
|
|||||||
return d->weight;
|
return d->weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
unsigned int
|
unsigned int
|
||||||
JSResolver::timeout() const
|
JSResolver::timeout() const
|
||||||
{
|
{
|
||||||
@@ -239,7 +241,7 @@ JSResolver::init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add resolver dependencies, if any
|
// add resolver dependencies, if any
|
||||||
foreach ( QString s, d->requiredScriptPaths )
|
foreach ( const QString& s, d->requiredScriptPaths )
|
||||||
{
|
{
|
||||||
QFile reqFile( s );
|
QFile reqFile( s );
|
||||||
if( !reqFile.open( QIODevice::ReadOnly ) )
|
if( !reqFile.open( QIODevice::ReadOnly ) )
|
||||||
|
@@ -906,6 +906,7 @@ urlSetQuery( QUrl& url, const QString& query )
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QByteArray
|
QByteArray
|
||||||
percentEncode( const QUrl& url )
|
percentEncode( const QUrl& url )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user