summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <peter.penz19@gmail.com>2012-02-03 21:31:02 (GMT)
committerPeter Penz <peter.penz19@gmail.com>2012-02-03 21:32:03 (GMT)
commit73e4324c25813486568c122a8ba9068350262774 (patch)
tree0aa0bab3ef2abdf569f22463a53b83867ecc5fda
parent773a61cafef49951c9170c03ac9b8349f0e7d6a2 (diff)
Show file size when hovering an item
BUG: 292687 FIXED-IN: 4.8.1
-rw-r--r--dolphin/src/dolphinviewcontainer.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/dolphin/src/dolphinviewcontainer.cpp b/dolphin/src/dolphinviewcontainer.cpp
index 9809fba..28bf525 100644
--- a/dolphin/src/dolphinviewcontainer.cpp
+++ b/dolphin/src/dolphinviewcontainer.cpp
@@ -430,12 +430,7 @@ void DolphinViewContainer::showItemInfo(const KFileItem& item)
m_statusBar->clear();
}
} else {
- QString message;
- if (item.isDir()) {
- message = item.text();
- } else {
- message = i18nc("@info:status filename (type)", "%1 (%2)", item.text(), item.mimeComment());
- }
+ const QString message = item.isDir() ? item.text() : item.getStatusBarInfo();
m_statusBar->setMessage(message, DolphinStatusBar::Default);
}
}