┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinfileitemdelegate.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-12-12 06:55:26 +0000
committerPeter Penz <[email protected]>2008-12-12 06:55:26 +0000
commit85aec92f819eae5a6189bd3ec25cff44dce3ae19 (patch)
tree3e03212e14973b71a6590fde819082a15a064c66 /src/dolphinfileitemdelegate.cpp
parentabce76721daaf6b785048a1fb9abd622236edd74 (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.cpp4
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;