mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
* Fixed repainting issues with PlayableCover.
This commit is contained in:
parent
8448e46c7e
commit
9b9c826f62
@ -133,6 +133,7 @@ void
|
||||
PlayableCover::setPixmap( const QPixmap& pixmap )
|
||||
{
|
||||
m_pixmap = TomahawkUtils::createRoundedImage( pixmap, size() );
|
||||
repaint();
|
||||
}
|
||||
|
||||
|
||||
@ -288,6 +289,7 @@ void
|
||||
PlayableCover::setArtist( const Tomahawk::artist_ptr& artist )
|
||||
{
|
||||
m_artist = artist;
|
||||
repaint();
|
||||
}
|
||||
|
||||
|
||||
@ -295,6 +297,7 @@ void
|
||||
PlayableCover::setAlbum( const Tomahawk::album_ptr& album )
|
||||
{
|
||||
m_album = album;
|
||||
repaint();
|
||||
}
|
||||
|
||||
|
||||
@ -302,4 +305,12 @@ void
|
||||
PlayableCover::setQuery( const Tomahawk::query_ptr& query )
|
||||
{
|
||||
m_query = query;
|
||||
repaint();
|
||||
}
|
||||
|
||||
|
||||
void PlayableCover::setShowText( bool b )
|
||||
{
|
||||
m_showText = b;
|
||||
repaint();
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
virtual ~PlayableCover();
|
||||
|
||||
bool showText() const { return m_showText; }
|
||||
void setShowText( bool b ) { m_showText = b; }
|
||||
void setShowText( bool b );
|
||||
|
||||
QPixmap pixmap() const { return m_pixmap; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user