┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-02-12 15:32:28 +0000
committerPeter Penz <[email protected]>2007-02-12 15:32:28 +0000
commit67e47827f63a5a3a394f46d7d33aace4f33b2399 (patch)
tree58ab26fc429409935e900a1b6f30343f36b257c9 /src
parent0a963931d3710fa045c10b0681d2ef7eec907a98 (diff)
use KIO::itemsSummaryString() instead of reinventing the wheel
svn path=/trunk/playground/utils/dolphin/; revision=632870
Diffstat (limited to 'src')
-rw-r--r--src/dolphinview.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 00c97477b..9a516af2d 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -747,16 +747,10 @@ void DolphinView::startDirLister(const KUrl& url, bool reload)
QString DolphinView::defaultStatusBarText() const
{
- const int itemCount = m_folderCount + m_fileCount;
-
- QString text = i18np("1 Item", "%n Items", itemCount);
- text += " (";
- text += i18np("1 Folder", "%n Folders", m_folderCount);
- text += ", ";
- text += i18np("1 File", "%n Files", m_fileCount);
- text += ")";
-
- return text;
+ return KIO::itemsSummaryString(m_fileCount + m_folderCount,
+ m_fileCount,
+ m_folderCount,
+ 0, false);
}
QString DolphinView::selectionStatusBarText() const