mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
* Added FIXMEs.
This commit is contained in:
@@ -305,6 +305,7 @@ AccountDelegate::paint ( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
{
|
{
|
||||||
painter->save();
|
painter->save();
|
||||||
painter->setFont( authorFont );
|
painter->setFont( authorFont );
|
||||||
|
//FIXME const color
|
||||||
painter->setPen( QColor( Qt::gray ).darker( 150 ) );
|
painter->setPen( QColor( Qt::gray ).darker( 150 ) );
|
||||||
const int authorWidth = authorMetrics.width( author );
|
const int authorWidth = authorMetrics.width( author );
|
||||||
const QRect authorRect( textRect.left(), textRect.bottom() + PADDING/2, authorWidth + 6, authorMetrics.height() );
|
const QRect authorRect( textRect.left(), textRect.bottom() + PADDING/2, authorWidth + 6, authorMetrics.height() );
|
||||||
@@ -549,6 +550,7 @@ AccountDelegate::editorEvent( QEvent* event, QAbstractItemModel* model, const QS
|
|||||||
void
|
void
|
||||||
AccountDelegate::drawRoundedButton( QPainter* painter, const QRect& btnRect, bool red ) const
|
AccountDelegate::drawRoundedButton( QPainter* painter, const QRect& btnRect, bool red ) const
|
||||||
{
|
{
|
||||||
|
//FIXME const colors
|
||||||
if ( !red )
|
if ( !red )
|
||||||
TomahawkUtils::drawRoundedButton( painter, btnRect, QColor(54, 127, 211), QColor(43, 104, 182), QColor(34, 85, 159), QColor(35, 79, 147) );
|
TomahawkUtils::drawRoundedButton( painter, btnRect, QColor(54, 127, 211), QColor(43, 104, 182), QColor(34, 85, 159), QColor(35, 79, 147) );
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user