diff options
| author | Peter Penz <[email protected]> | 2008-12-12 06:55:26 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-12-12 06:55:26 +0000 |
| commit | 85aec92f819eae5a6189bd3ec25cff44dce3ae19 (patch) | |
| tree | 3e03212e14973b71a6590fde819082a15a064c66 /src/dolphinfileitemdelegate.cpp | |
| parent | abce76721daaf6b785048a1fb9abd622236edd74 (diff) | |
SVN_SILENT: removed trailing spaces
svn path=/trunk/KDE/kdebase/apps/; revision=895978
Diffstat (limited to 'src/dolphinfileitemdelegate.cpp')
| -rw-r--r-- | src/dolphinfileitemdelegate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinfileitemdelegate.cpp b/src/dolphinfileitemdelegate.cpp index 9889feef8..a66e051ba 100644 --- a/src/dolphinfileitemdelegate.cpp +++ b/src/dolphinfileitemdelegate.cpp @@ -42,7 +42,7 @@ void DolphinFileItemDelegate::paint(QPainter* painter, { if (m_hasMinimizedNameColumn && (index.column() == KDirModel::Name)) { QStyleOptionViewItemV4 opt(option); - + const QAbstractProxyModel* proxyModel = static_cast<const QAbstractProxyModel*>(index.model()); const KDirModel* dirModel = static_cast<const KDirModel*>(proxyModel->sourceModel()); const QModelIndex dirIndex = proxyModel->mapToSource(index); @@ -61,7 +61,7 @@ int DolphinFileItemDelegate::nameColumnWidth(const QString& name, const QStyleOp { QFontMetrics fontMetrics(option.font); int width = option.decorationSize.width() + fontMetrics.width(name) + 16; - + const int defaultWidth = option.rect.width(); if ((defaultWidth > 0) && (defaultWidth < width)) { width = defaultWidth; |
