1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 11:30:49 +02:00

Use default font size to paint sources in sidebar.

This commit is contained in:
Christian Muehlhaeuser
2015-10-29 04:59:59 +01:00
parent f7c3f25d8e
commit 7efbd37d6a

View File

@@ -187,6 +187,9 @@ SourceDelegate::paintSource( QPainter* painter, const QStyleOptionViewItem& opti
{
painter->save();
painter->setPen( Qt::black );
QFont font = painter->font();
font.setPointSize( TomahawkUtils::defaultFontSize() );
painter->setFont( font );
SourceTreeItem* item = index.data( SourcesModel::SourceTreeItemRole ).value< SourceTreeItem* >();
SourcesModel::RowType type = static_cast< SourcesModel::RowType >( index.data( SourcesModel::SourceTreeItemTypeRole ).toInt() );