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
This commit is contained in:
parent
445273c021
commit
f099f6323b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue