mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
Set default font size for generic sidebar items.
This commit is contained in:
parent
3db70bce53
commit
d41ac411d8
@ -98,6 +98,10 @@ SourceDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelIndex&
|
||||
void
|
||||
SourceDelegate::paintStandardItem( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index, const QString& count ) const
|
||||
{
|
||||
QFont font = painter->font();
|
||||
font.setPointSize( TomahawkUtils::defaultFontSize() );
|
||||
painter->setFont( font );
|
||||
|
||||
SourcesModel::RowType type = static_cast< SourcesModel::RowType >( index.data( SourcesModel::SourceTreeItemTypeRole ).toInt() );
|
||||
const bool upperCase = !( type == SourcesModel::StaticPlaylist ||
|
||||
type == SourcesModel::AutomaticPlaylist ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user