1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* Fixed repainting issues with PlayableCover.

This commit is contained in:
Christian Muehlhaeuser
2013-01-04 11:11:51 +01:00
parent 8448e46c7e
commit 9b9c826f62
2 changed files with 12 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ void
PlayableCover::setPixmap( const QPixmap& pixmap ) PlayableCover::setPixmap( const QPixmap& pixmap )
{ {
m_pixmap = TomahawkUtils::createRoundedImage( pixmap, size() ); m_pixmap = TomahawkUtils::createRoundedImage( pixmap, size() );
repaint();
} }
@@ -288,6 +289,7 @@ void
PlayableCover::setArtist( const Tomahawk::artist_ptr& artist ) PlayableCover::setArtist( const Tomahawk::artist_ptr& artist )
{ {
m_artist = artist; m_artist = artist;
repaint();
} }
@@ -295,6 +297,7 @@ void
PlayableCover::setAlbum( const Tomahawk::album_ptr& album ) PlayableCover::setAlbum( const Tomahawk::album_ptr& album )
{ {
m_album = album; m_album = album;
repaint();
} }
@@ -302,4 +305,12 @@ void
PlayableCover::setQuery( const Tomahawk::query_ptr& query ) PlayableCover::setQuery( const Tomahawk::query_ptr& query )
{ {
m_query = query; m_query = query;
repaint();
}
void PlayableCover::setShowText( bool b )
{
m_showText = b;
repaint();
} }

View File

@@ -41,7 +41,7 @@ public:
virtual ~PlayableCover(); virtual ~PlayableCover();
bool showText() const { return m_showText; } bool showText() const { return m_showText; }
void setShowText( bool b ) { m_showText = b; } void setShowText( bool b );
QPixmap pixmap() const { return m_pixmap; } QPixmap pixmap() const { return m_pixmap; }