CCMAIL : peter.penz@gmx.at
CCMAIL : faure@kde.org
svn path=/trunk/KDE/kdebase/apps/; revision=876681
const QModelIndex dirIndex = proxyModel->mapToSource(index);
const KFileItem item = dirModel->itemForIndex(dirIndex);
if (!item.isNull()) {
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);
opt.rect.setWidth(width);
}
KFileItemDelegate::paint(painter, opt, index);