mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-10-04 17:41:42 +02:00
show source icon in now-playing widget
This commit is contained in:
@@ -178,6 +178,7 @@ Result::toVariant() const
|
||||
m.insert( "album", album()->name() );
|
||||
m.insert( "track", track() );
|
||||
m.insert( "source", friendlySource() );
|
||||
m.insert( "sourceIcon", sourceIcon() );
|
||||
m.insert( "mimetype", mimetype() );
|
||||
m.insert( "size", size() );
|
||||
m.insert( "bitrate", bitrate() );
|
||||
@@ -294,6 +295,20 @@ Result::friendlySource() const
|
||||
}
|
||||
|
||||
|
||||
QPixmap
|
||||
Result::sourceIcon() const
|
||||
{
|
||||
if ( collection().isNull() )
|
||||
{
|
||||
return m_sourceIcon;
|
||||
}
|
||||
else
|
||||
{
|
||||
return collection()->source()->avatar( Source::FancyStyle );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Tomahawk::Resolver*
|
||||
Result::resolvedBy() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user