Commit 8526b9a3 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: return fontrole for all items

By default use defaultsize (from theme/system) - 2 points.
parent c07dca23
...@@ -352,10 +352,11 @@ QVariant PLModel::data( const QModelIndex &index, const int role ) const ...@@ -352,10 +352,11 @@ QVariant PLModel::data( const QModelIndex &index, const int role ) const
} }
else if( role == Qt::FontRole ) else if( role == Qt::FontRole )
{ {
QFont f;
f.setPointSize( f.pointSize() - 2 );
if( isCurrent( index ) ) if( isCurrent( index ) )
{ f.setBold( true );
QFont f; f.setBold( true ); return QVariant( f ); return QVariant( f );
}
} }
else if( role == Qt::BackgroundRole && isCurrent( index ) ) else if( role == Qt::BackgroundRole && isCurrent( index ) )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment