mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
Use collection icon interface properly
This commit is contained in:
@@ -451,7 +451,7 @@ Result::sourceIcon( TomahawkUtils::ImageMode style, const QSize& desiredSize ) c
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QPixmap avatar = resolvedByCollection()->source()->avatar( TomahawkUtils::RoundedCorners, desiredSize, true );
|
QPixmap avatar = resolvedByCollection()->icon( desiredSize );
|
||||||
return avatar;
|
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
|
void
|
||||||
DatabaseCollection::autoPlaylistCreated( const source_ptr& source, const QVariantList& data )
|
DatabaseCollection::autoPlaylistCreated( const source_ptr& source, const QVariantList& data )
|
||||||
{
|
{
|
||||||
|
@@ -58,6 +58,7 @@ public:
|
|||||||
Tomahawk::TracksRequest* requestTracks( const Tomahawk::album_ptr& album ) override;
|
Tomahawk::TracksRequest* requestTracks( const Tomahawk::album_ptr& album ) override;
|
||||||
|
|
||||||
int trackCount() const override;
|
int trackCount() const override;
|
||||||
|
const QPixmap icon( const QSize& size ) const override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
virtual void addTracks( const QList<QVariant>& newitems );
|
virtual void addTracks( const QList<QVariant>& newitems );
|
||||||
|
Reference in New Issue
Block a user