mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-03 20:57:52 +02:00
increase font sizes by one point in the sourcetree and welcomewidget
This commit is contained in:
@@ -192,9 +192,9 @@ PlaylistDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelInde
|
|||||||
int height = 2 * 6; // margins
|
int height = 2 * 6; // margins
|
||||||
QFont font = option.font;
|
QFont font = option.font;
|
||||||
QFontMetrics fm1( font );
|
QFontMetrics fm1( font );
|
||||||
font.setPointSize( 8 );
|
|
||||||
height += fm1.height() * 3;
|
|
||||||
font.setPointSize( 9 );
|
font.setPointSize( 9 );
|
||||||
|
height += fm1.height() * 3;
|
||||||
|
font.setPointSize( 12 );
|
||||||
QFontMetrics fm2( font );
|
QFontMetrics fm2( font );
|
||||||
height += fm2.height();
|
height += fm2.height();
|
||||||
|
|
||||||
@@ -221,17 +221,15 @@ PlaylistDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
QTextOption to;
|
QTextOption to;
|
||||||
to.setAlignment( Qt::AlignCenter );
|
to.setAlignment( Qt::AlignCenter );
|
||||||
QFont font = opt.font;
|
QFont font = opt.font;
|
||||||
font.setPointSize( 8 );
|
font.setPointSize( 9 );
|
||||||
QFontMetrics fontMetrics( font );
|
|
||||||
|
|
||||||
QFont boldFont = font;
|
QFont boldFont = font;
|
||||||
boldFont.setBold( true );
|
boldFont.setBold( true );
|
||||||
boldFont.setPointSize( 9 );
|
boldFont.setPointSize( 10 );
|
||||||
QFontMetrics boldFontMetrics( boldFont );
|
QFontMetrics boldFontMetrics( boldFont );
|
||||||
|
|
||||||
QFont figFont = boldFont;
|
QFont figFont = boldFont;
|
||||||
figFont.setPointSize( 8 );
|
figFont.setPointSize( 9 );
|
||||||
QFontMetrics figFontMetrics( figFont );
|
|
||||||
|
|
||||||
QPixmap icon;
|
QPixmap icon;
|
||||||
RecentlyPlayedPlaylistsModel::PlaylistTypes type = (RecentlyPlayedPlaylistsModel::PlaylistTypes)index.data( RecentlyPlayedPlaylistsModel::PlaylistTypeRole ).toInt();
|
RecentlyPlayedPlaylistsModel::PlaylistTypes type = (RecentlyPlayedPlaylistsModel::PlaylistTypes)index.data( RecentlyPlayedPlaylistsModel::PlaylistTypeRole ).toInt();
|
||||||
|
@@ -167,7 +167,7 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem&
|
|||||||
figFont.setFamily( "Arial Bold" );
|
figFont.setFamily( "Arial Bold" );
|
||||||
figFont.setWeight( QFont::Black );
|
figFont.setWeight( QFont::Black );
|
||||||
//figFont.setPixelSize( 10 );
|
//figFont.setPixelSize( 10 );
|
||||||
figFont.setPointSize( 7 );
|
figFont.setPointSize( 8 );
|
||||||
|
|
||||||
SourceTreeItem* item = index.data( SourcesModel::SourceTreeItemRole ).value< SourceTreeItem* >();
|
SourceTreeItem* item = index.data( SourcesModel::SourceTreeItemRole ).value< SourceTreeItem* >();
|
||||||
SourceItem* colItem = qobject_cast< SourceItem* >( item );
|
SourceItem* colItem = qobject_cast< SourceItem* >( item );
|
||||||
@@ -303,7 +303,7 @@ SourceDelegate::paintCategory( QPainter* painter, const QStyleOptionViewItem& op
|
|||||||
|
|
||||||
QFont font = painter->font();
|
QFont font = painter->font();
|
||||||
//font.setPixelSize( 11 );
|
//font.setPixelSize( 11 );
|
||||||
font.setPointSize( 8 );
|
font.setPointSize( 9 );
|
||||||
font.setBold( true );
|
font.setBold( true );
|
||||||
painter->setFont( font );
|
painter->setFont( font );
|
||||||
QTextOption to( Qt::AlignVCenter | Qt::AlignRight );
|
QTextOption to( Qt::AlignVCenter | Qt::AlignRight );
|
||||||
@@ -322,7 +322,7 @@ SourceDelegate::paintGroup( QPainter* painter, const QStyleOptionViewItem& optio
|
|||||||
{
|
{
|
||||||
QFont font = painter->font();
|
QFont font = painter->font();
|
||||||
// font.setPixelSize( 12 );
|
// font.setPixelSize( 12 );
|
||||||
font.setPointSize( 9 );
|
font.setPointSize( 10 );
|
||||||
font.setBold( true );
|
font.setBold( true );
|
||||||
painter->setFont( font );
|
painter->setFont( font );
|
||||||
|
|
||||||
@@ -369,7 +369,7 @@ SourceDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, co
|
|||||||
|
|
||||||
QFont font = painter->font();
|
QFont font = painter->font();
|
||||||
// font.setPixelSize( 11 );
|
// font.setPixelSize( 11 );
|
||||||
font.setPointSize( 8 );
|
font.setPointSize( 9 );
|
||||||
painter->setFont( font );
|
painter->setFont( font );
|
||||||
o.font = font;
|
o.font = font;
|
||||||
o3.font = font;
|
o3.font = font;
|
||||||
@@ -469,7 +469,7 @@ SourceDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, co
|
|||||||
|
|
||||||
QFont font = painter->font();
|
QFont font = painter->font();
|
||||||
// font.setPixelSize( 12 );
|
// font.setPixelSize( 12 );
|
||||||
font.setPointSize( 9 );
|
font.setPointSize( 10 );
|
||||||
painter->setFont( font );
|
painter->setFont( font );
|
||||||
QFont fontBold = painter->font();
|
QFont fontBold = painter->font();
|
||||||
fontBold.setBold( true );
|
fontBold.setBold( true );
|
||||||
|
Reference in New Issue
Block a user