mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
* Properly set pen before painting figure ovals.
This commit is contained in:
@@ -284,7 +284,7 @@ PlaylistDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
rect.setBottom( pixmapRect.bottom() + 1 );
|
rect.setBottom( pixmapRect.bottom() + 1 );
|
||||||
|
|
||||||
QColor figColor( TomahawkStyle::DASHBOARD_ROUNDFIGURE_BACKGROUND );
|
QColor figColor( TomahawkStyle::DASHBOARD_ROUNDFIGURE_BACKGROUND );
|
||||||
painter->setPen( figColor );
|
painter->setPen( Qt::white );
|
||||||
painter->setBrush( figColor );
|
painter->setBrush( figColor );
|
||||||
|
|
||||||
TomahawkUtils::drawBackgroundAndNumbers( painter, tracks, rect );
|
TomahawkUtils::drawBackgroundAndNumbers( painter, tracks, rect );
|
||||||
|
@@ -436,7 +436,7 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem&
|
|||||||
painter->setFont( figFont );
|
painter->setFont( figFont );
|
||||||
|
|
||||||
QColor figColor( TomahawkStyle::SIDEBAR_ROUNDFIGURE_BACKGROUND );
|
QColor figColor( TomahawkStyle::SIDEBAR_ROUNDFIGURE_BACKGROUND );
|
||||||
painter->setPen( figColor );
|
painter->setPen( Qt::white );
|
||||||
painter->setBrush( figColor );
|
painter->setBrush( figColor );
|
||||||
|
|
||||||
TomahawkUtils::drawBackgroundAndNumbers( painter, tracks, figRect );
|
TomahawkUtils::drawBackgroundAndNumbers( painter, tracks, figRect );
|
||||||
|
Reference in New Issue
Block a user