This may be too big font for some, but static 7 point isn't that good either.
painter->setPen( option.palette.color( QPalette::HighlightedText ) );
QFont font( index.data( Qt::FontRole ).value<QFont>() );
- font.setPointSize( 7 );
//Draw children indicator
if( !index.data( PLModel::IsLeafNodeRole ).toBool() )
QSize PlIconViewItemDelegate::sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const
{
- QFont f;
- f.setPointSize( 7 );
+ QFont f( index.data( Qt::FontRole ).value<QFont>() );
f.setBold( true );
QFontMetrics fm( f );
int textHeight = fm.height();