mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 11:04:01 +02:00
Use default font size to paint sources in sidebar.
This commit is contained in:
@@ -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() );
|
||||
|
Reference in New Issue
Block a user