Too long titles in tabbox are probably elided in the middle as the application name is on the right.

svn path=/trunk/KDE/kdebase/workspace/; revision=1130021
icc-effect-5.14.5
Martin Gräßlin 2010-05-24 08:26:25 +00:00
parent 445273c021
commit f099f6323b
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ qreal ClientItemDelegate::paintTextElement( QPainter* painter, const QStyleOptio
m_frame->getMargins( left, top, right, bottom );
width = option.rect.left() + option.rect.width() - x - right;
}
text = QFontMetricsF( font ).elidedText( text, Qt::ElideRight, width );
text = QFontMetricsF( font ).elidedText( text, Qt::ElideMiddle, width );
QRectF rect = QRectF( x, y, width, rowHeight );
painter->drawText( rect, element.alignment() | Qt::TextSingleLine, text );
painter->restore();