[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/dolphin/src
From: Peter Penz <peter.penz () gmx ! at>
Date: 2007-02-12 15:32:30
Message-ID: 1171294350.591601.4368.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 632870 by ppenz:
use KIO::itemsSummaryString() instead of reinventing the wheel
M +4 -10 dolphinview.cpp
--- trunk/playground/utils/dolphin/src/dolphinview.cpp #632869:632870
@@ -747,16 +747,10 @@
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic