[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/apps/konqueror/src
From: David Faure <faure () kde ! org>
Date: 2011-01-11 21:58:29
Message-ID: 20110111215829.E3D12AC8B3 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1213862 by dfaure:
Don't truncate the urls in the completion when there is no title to show (e.g. local \
files)
M +6 -1 konqcombo.cpp
--- trunk/KDE/kdebase/apps/konqueror/src/konqcombo.cpp #1213861:1213862
@@ -790,7 +790,12 @@
if ( !pixmap.isNull() )
painter->drawPixmap( pixmapRect.topLeft(), pixmap );
- const QSize titleSize( ( bounding.width() / 3 ) - 1, textRect.height() );
+ QSize titleSize( ( bounding.width() / 3 ) - 1, textRect.height() );
+ if (title.isEmpty()) {
+ // Don't truncate the urls when there is no title to show (e.g. local files)
+ // Ideally we would do this globally for all items - reserve space for a \
title for all, or for none + titleSize = QSize();
+ }
const QSize urlSize( textRect.width() - titleSize.width() - 2, textRect.height() \
);
const QRect titleRect = QStyle::alignedRect( option.direction, Qt::AlignRight, \
titleSize, textRect );
const QRect urlRect = QStyle::alignedRect( option.direction, Qt::AlignLeft, \
urlSize, textRect );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic