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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
@@ -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; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user