┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-11-04 21:54:01 +0100
committerPeter Penz <[email protected]>2011-11-04 21:58:32 +0100
commiteadbf920b5dffdf2d1548240c25ec2eaf835aad5 (patch)
treefec0857c4a8b95cdaaa6756f50b9412c35b58668 /src/dolphinviewcontainer.cpp
parentd27f776cd2675e67b70556ad4033230435d89d8e (diff)
Don't use mixed units in size-column of details-view
This makes it tricky to compare the filesizes without adjusting the sort-order, so now all sizes in the size-column are shown in KiB or KB (dependent on the KLocale setting). BUG: 219932 FIXED-IN: 4.8.0 Related fixes: - Stay consistent with the rounding when using the KiB/KB unit in the statusbar. - Fix sorting-by-size issue for folders - Show "Unknown" in the size-column when the number of items cannot be determined.
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
-rw-r--r--src/dolphinviewcontainer.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp
index f3c536b52..47195bbca 100644
--- a/src/dolphinviewcontainer.cpp
+++ b/src/dolphinviewcontainer.cpp
@@ -427,7 +427,13 @@ void DolphinViewContainer::showItemInfo(const KFileItem& item)
m_statusBar->clear();
}
} else {
- m_statusBar->setMessage(item.getStatusBarInfo(), DolphinStatusBar::Default);
+ QString message;
+ if (item.isDir()) {
+ message = item.name();
+ } else {
+ message = i18nc("@info:status filename (type)", "%1 (%2)", item.name(), item.mimeComment());
+ }
+ m_statusBar->setMessage(message, DolphinStatusBar::Default);
}
}