mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
Set default font size for generic sidebar items.
This commit is contained in:
@@ -98,6 +98,10 @@ SourceDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelIndex&
|
|||||||
void
|
void
|
||||||
SourceDelegate::paintStandardItem( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index, const QString& count ) const
|
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() );
|
SourcesModel::RowType type = static_cast< SourcesModel::RowType >( index.data( SourcesModel::SourceTreeItemTypeRole ).toInt() );
|
||||||
const bool upperCase = !( type == SourcesModel::StaticPlaylist ||
|
const bool upperCase = !( type == SourcesModel::StaticPlaylist ||
|
||||||
type == SourcesModel::AutomaticPlaylist ||
|
type == SourcesModel::AutomaticPlaylist ||
|
||||||
|
Reference in New Issue
Block a user