of the area which is made available to KFileItemDelegate::paint. Fixes
the problem that Dolphin truncates the names of some symbolic links if
the italic version of the font needs more space than the non-italic
one.
BUG: 183620
CCMAIL: fredrikh@kde.org
svn path=/trunk/KDE/kdebase/apps/; revision=968589
const QModelIndex dirIndex = proxyModel->mapToSource(index);
const KFileItem item = dirModel->itemForIndex(dirIndex);
if (!item.isNull()) {
+ // Symbolic links are displayed in an italic font
+ if (item.isLink())
+ opt.font.setItalic(true);
+
const int width = nameColumnWidth(item.text(), opt);
opt.rect.setWidth(width);
}