From: Simon Paul St James Date: Mon, 27 Oct 2008 20:29:02 +0000 (+0000) Subject: KFileItem name() and text() needn't be the same, and we should prefer text(). Testca... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/74bb633cbd760a076c4e71f40069b0115cbc8276 KFileItem name() and text() needn't be the same, and we should prefer text(). Testcase - very (very) recent settings:/ in Konqueror. Thanks to dfaure for clairvoyant diagnosis! CCMAIL : peter.penz@gmx.at CCMAIL : faure@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=876681 --- diff --git a/src/dolphinfileitemdelegate.cpp b/src/dolphinfileitemdelegate.cpp index c0e032570..9889feef8 100644 --- a/src/dolphinfileitemdelegate.cpp +++ b/src/dolphinfileitemdelegate.cpp @@ -48,7 +48,7 @@ void DolphinFileItemDelegate::paint(QPainter* painter, const QModelIndex dirIndex = proxyModel->mapToSource(index); const KFileItem item = dirModel->itemForIndex(dirIndex); if (!item.isNull()) { - const int width = nameColumnWidth(item.name(), opt); + const int width = nameColumnWidth(item.text(), opt); opt.rect.setWidth(width); } KFileItemDelegate::paint(painter, opt, index);