mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
Use collection icon interface properly
This commit is contained in:
parent
5de7afd461
commit
ea42bd1d18
@ -451,7 +451,7 @@ Result::sourceIcon( TomahawkUtils::ImageMode style, const QSize& desiredSize ) c
|
||||
}
|
||||
else
|
||||
{
|
||||
QPixmap avatar = resolvedByCollection()->source()->avatar( TomahawkUtils::RoundedCorners, desiredSize, true );
|
||||
QPixmap avatar = resolvedByCollection()->icon( desiredSize );
|
||||
return avatar;
|
||||
}
|
||||
}
|
||||
|
@ -189,6 +189,13 @@ DatabaseCollection::trackCount() const
|
||||
}
|
||||
|
||||
|
||||
const QPixmap
|
||||
DatabaseCollection::icon( const QSize& size ) const
|
||||
{
|
||||
return source()->avatar( TomahawkUtils::RoundedCorners, size, true );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DatabaseCollection::autoPlaylistCreated( const source_ptr& source, const QVariantList& data )
|
||||
{
|
||||
|
@ -58,6 +58,7 @@ public:
|
||||
Tomahawk::TracksRequest* requestTracks( const Tomahawk::album_ptr& album ) override;
|
||||
|
||||
int trackCount() const override;
|
||||
const QPixmap icon( const QSize& size ) const override;
|
||||
|
||||
public slots:
|
||||
virtual void addTracks( const QList<QVariant>& newitems );
|
||||
|
Loading…
x
Reference in New Issue
Block a user