diff options
| author | Simon Paul St James <[email protected]> | 2008-10-27 20:29:02 +0000 |
|---|---|---|
| committer | Simon Paul St James <[email protected]> | 2008-10-27 20:29:02 +0000 |
| commit | 74bb633cbd760a076c4e71f40069b0115cbc8276 (patch) | |
| tree | c2de5ea0afdb2da93ac769f352c9bcad90026a56 /src/dolphinfileitemdelegate.cpp | |
| parent | 1fabd1bab56f46bdb53b4be911309f6b279a7556 (diff) | |
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 : [email protected]
CCMAIL : [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=876681
Diffstat (limited to 'src/dolphinfileitemdelegate.cpp')
| -rw-r--r-- | src/dolphinfileitemdelegate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
