1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Style fix

This commit is contained in:
Hugo Lindström
2011-10-09 14:13:39 +02:00
parent 777ebd77c8
commit 8a9a48fda1

View File

@@ -211,8 +211,8 @@ ChartsPlugin::notInCacheSlot( uint requestId, QHash<QString, QString> criteria,
foreach( QVariant type, m_chartTypes ) foreach( QVariant type, m_chartTypes )
{ {
if( type.toMap().value( "geo" ).isValid() ) { if( type.toMap().value( "geo" ).isValid() )
{
geos.append( type.toMap().value( "geo" ).toString() ); geos.append( type.toMap().value( "geo" ).toString() );
} }
} }
@@ -252,10 +252,10 @@ ChartsPlugin::notInCacheSlot( uint requestId, QHash<QString, QString> criteria,
QList<Chart> geoTrack_charts; QList<Chart> geoTrack_charts;
foreach( QVariant type, m_chartTypes ) foreach( QVariant type, m_chartTypes )
{ {
/// Itunes supplys charts based on geo, create breadcrumb for each of them
/// Itunes supplys charts based on geo, for now, only take US charts
/// @todo: Add new breadcrumb option for country?
if( type.toMap().value( "source" ).toString() == chartResource.toString() if( type.toMap().value( "source" ).toString() == chartResource.toString()
&& type.toMap().value( "geo" ).isValid() ) && type.toMap().value( "geo" ).isValid() )
{ {
@@ -280,17 +280,14 @@ ChartsPlugin::notInCacheSlot( uint requestId, QHash<QString, QString> criteria,
} }
} }
} }
} }
} }
}else{ }else{
/// Billboard, and maybe others
foreach( QVariant type, m_chartTypes ) foreach( QVariant type, m_chartTypes )
{ {
// && type.toMap().value( "geo" ).toString() != "us" )
// continue;
/// Append each type to its parent source /// Append each type to its parent source
/// @todo Add chartType enum /// @todo Add chartType enum
@@ -301,6 +298,7 @@ ChartsPlugin::notInCacheSlot( uint requestId, QHash<QString, QString> criteria,
album_charts.append( Chart( type.toMap().value("id").toString(), type.toMap().value("name").toString(), "album" ) ); album_charts.append( Chart( type.toMap().value("id").toString(), type.toMap().value("name").toString(), "album" ) );
charts.insert( "Albums", QVariant::fromValue<QList<Chart> >( album_charts ) ); charts.insert( "Albums", QVariant::fromValue<QList<Chart> >( album_charts ) );
} }
if( type.toMap().value( "type" ).toString() == "Track" ) if( type.toMap().value( "type" ).toString() == "Track" )
{ {
track_charts.append( Chart( type.toMap().value("id").toString(), type.toMap().value("name").toString(), "tracks" ) ); track_charts.append( Chart( type.toMap().value("id").toString(), type.toMap().value("name").toString(), "tracks" ) );