-
- if (m_hasMinimizedNameColumn && (index.column() == KDirModel::Name)) {
- QStyleOptionViewItemV4 opt(option);
-
- const QModelIndex dirIndex = proxyModel->mapToSource(index);
- const KFileItem item = dolphinModel->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);
- }
- KFileItemDelegate::paint(painter, opt, index);
- } else {
- KFileItemDelegate::paint(painter, option, index);
- }