mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* Fixed GridItemDelegate's fonts.
This commit is contained in:
@@ -173,10 +173,10 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
|
|
||||||
QString text;
|
QString text;
|
||||||
QFont font = opt.font;
|
QFont font = opt.font;
|
||||||
font.setPixelSize( 10 );
|
font.setPointSize( TomahawkUtils::defaultFontSize() );
|
||||||
QFont boldFont = font;
|
QFont boldFont = font;
|
||||||
boldFont.setBold( true );
|
boldFont.setBold( true );
|
||||||
boldFont.setPixelSize( 14 );
|
boldFont.setPointSize( TomahawkUtils::defaultFontSize() + 1 );
|
||||||
|
|
||||||
QRect textRect = option.rect.adjusted( 6, option.rect.height() - 36, -4, -6 );
|
QRect textRect = option.rect.adjusted( 6, option.rect.height() - 36, -4, -6 );
|
||||||
painter->setFont( font );
|
painter->setFont( font );
|
||||||
|
Reference in New Issue
Block a user