]> cloud.milkyroute.net Git - dolphin.git/commitdiff
KFileItem name() and text() needn't be the same, and we should prefer text(). Testca...
authorSimon Paul St James <kdedevel@etotheipiplusone.com>
Mon, 27 Oct 2008 20:29:02 +0000 (20:29 +0000)
committerSimon Paul St James <kdedevel@etotheipiplusone.com>
Mon, 27 Oct 2008 20:29:02 +0000 (20:29 +0000)
CCMAIL : peter.penz@gmx.at
CCMAIL : faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=876681

src/dolphinfileitemdelegate.cpp

index c0e032570ce78f228edc6af26ffd30f03b4917fc..9889feef8ef32d1e93cc7838bc5191d9235c40ed 100644 (file)
@@ -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);