mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
elide completion entries in the middle
The completion list did show the URLs as right-elided entries, which is not optimal. For filenames and man pages at least middle-elide is much more sensible. BUG: 111821 FIXED-IN: 4.9.1 REVIEW: 106183
This commit is contained in:
parent
4a6e5ee19b
commit
265b1a5118
1 changed files with 1 additions and 1 deletions
|
@ -799,7 +799,7 @@ void KonqComboItemDelegate::paint( QPainter *painter, const QStyleOptionViewItem
|
|||
const QRect urlRect = QStyle::alignedRect( option.direction, Qt::AlignLeft, urlSize, textRect );
|
||||
|
||||
if ( !url.isEmpty() ) {
|
||||
QString squeezedText = option.fontMetrics.elidedText( url, Qt::ElideRight, urlRect.width() );
|
||||
QString squeezedText = option.fontMetrics.elidedText( url, Qt::ElideMiddle, urlRect.width() );
|
||||
painter->drawText( urlRect, Qt::AlignLeft | Qt::AlignVCenter, squeezedText );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue