mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-22 16:59:58 +01:00
* Renamed infoLoaded() to coverLoaded().
This commit is contained in:
parent
b2b7fc4a4e
commit
33cae66d95
@ -82,8 +82,8 @@ Album::Album( unsigned int id, const QString& name, const Tomahawk::artist_ptr&
|
||||
, m_id( id )
|
||||
, m_name( name )
|
||||
, m_artist( artist )
|
||||
, m_infoLoaded( false )
|
||||
, m_infoLoading( false )
|
||||
, m_coverLoaded( false )
|
||||
, m_coverLoading( false )
|
||||
#ifndef ENABLE_HEADLESS
|
||||
, m_cover( 0 )
|
||||
#endif
|
||||
@ -110,7 +110,7 @@ Album::artist() const
|
||||
QPixmap
|
||||
Album::cover( const QSize& size, bool forceLoad ) const
|
||||
{
|
||||
if ( !m_infoLoaded && !m_infoLoading )
|
||||
if ( !m_coverLoaded && !m_coverLoading )
|
||||
{
|
||||
if ( !forceLoad )
|
||||
return QPixmap();
|
||||
@ -137,7 +137,7 @@ Album::cover( const QSize& size, bool forceLoad ) const
|
||||
|
||||
Tomahawk::InfoSystem::InfoSystem::instance()->getInfo( requestData );
|
||||
|
||||
m_infoLoading = true;
|
||||
m_coverLoading = true;
|
||||
}
|
||||
|
||||
if ( !m_cover && !m_coverBuffer.isEmpty() )
|
||||
@ -202,7 +202,7 @@ Album::infoSystemFinished( const QString& target )
|
||||
disconnect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ),
|
||||
this, SLOT( infoSystemFinished( QString ) ) );
|
||||
|
||||
m_infoLoaded = true;
|
||||
m_coverLoaded = true;
|
||||
emit updated();
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
#ifndef ENABLE_HEADLESS
|
||||
QPixmap cover( const QSize& size, bool forceLoad = true ) const;
|
||||
#endif
|
||||
bool infoLoaded() const { return m_infoLoaded; }
|
||||
bool coverLoaded() const { return m_coverLoaded; }
|
||||
|
||||
QList<Tomahawk::query_ptr> tracks( ModelMode mode = Mixed, const Tomahawk::collection_ptr& collection = Tomahawk::collection_ptr() );
|
||||
Tomahawk::playlistinterface_ptr playlistInterface( ModelMode mode, const Tomahawk::collection_ptr& collection = Tomahawk::collection_ptr() );
|
||||
@ -85,8 +85,8 @@ private:
|
||||
artist_ptr m_artist;
|
||||
QByteArray m_coverBuffer;
|
||||
|
||||
bool m_infoLoaded;
|
||||
mutable bool m_infoLoading;
|
||||
bool m_coverLoaded;
|
||||
mutable bool m_coverLoading;
|
||||
mutable QString m_uuid;
|
||||
|
||||
#ifndef ENABLE_HEADLESS
|
||||
|
Loading…
x
Reference in New Issue
Block a user