diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinfileitemdelegate.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dolphinfileitemdelegate.cpp b/src/dolphinfileitemdelegate.cpp index 3fa05cbb5..9be70647b 100644 --- a/src/dolphinfileitemdelegate.cpp +++ b/src/dolphinfileitemdelegate.cpp @@ -48,6 +48,10 @@ void DolphinFileItemDelegate::paint(QPainter* painter, 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); } |
