From ae153a16ec6ecf667fb0137d813d3c52a0785c71 Mon Sep 17 00:00:00 2001
From: Jonathan Thomas <echidnaman@kubuntu.org>
Date: Thu, 27 May 2010 11:07:43 -0400
Subject: Don't use QString::number(), KDE will format the numbers is an
 l10n-friendly fashion, QString::number() won't

---
 src/bookmarks/bookmarksmanager.cpp   | 2 +-
 src/bookmarks/bookmarkstreemodel.cpp | 2 +-
 src/history/historypanel.cpp         | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bookmarks/bookmarksmanager.cpp b/src/bookmarks/bookmarksmanager.cpp
index bac45b61..c430078b 100644
--- a/src/bookmarks/bookmarksmanager.cpp
+++ b/src/bookmarks/bookmarksmanager.cpp
@@ -103,7 +103,7 @@ void BookmarkOwner::openFolderinTabs(const KBookmarkGroup &bookmark)
                                                     i18ncp("%1=Number of tabs. Value is always >=8",
                                                            "You are about to open %1 tabs.\nAre you sure?",
                                                            "You are about to open %1 tabs.\nAre you sure?", 
-                                                    QString::number( urlList.length() ))
+                                                           urlList.length())
                                                  ) == KMessageBox::Continue) 
            )
             return;
diff --git a/src/bookmarks/bookmarkstreemodel.cpp b/src/bookmarks/bookmarkstreemodel.cpp
index 4003cf3f..a865a99d 100644
--- a/src/bookmarks/bookmarkstreemodel.cpp
+++ b/src/bookmarks/bookmarkstreemodel.cpp
@@ -75,7 +75,7 @@ QVariant BtmItem::data(int role) const
         }
         if (m_kbm.isGroup())
         {
-            tooltip += i18nc("%1=Number of items in bookmark folder", " (%1 items)", QString::number(childCount()));
+            tooltip += i18nc("%1=Number of items in bookmark folder", " (%1 items)", childCount());
         }
         if (!m_kbm.url().url().isEmpty())
         {
diff --git a/src/history/historypanel.cpp b/src/history/historypanel.cpp
index 28284e0a..d8309eed 100644
--- a/src/history/historypanel.cpp
+++ b/src/history/historypanel.cpp
@@ -175,7 +175,7 @@ void HistoryPanel::openAll()
                 i18ncp("%1=Number of tabs. Value is always >=8",
                        "You are about to open %1 tabs.\nAre you sure?",
                        "You are about to open %1 tabs.\nAre you sure?",
-                     QString::number(allChild.length()))) == KMessageBox::Continue)
+                       allChild.length())) == KMessageBox::Continue)
            )
             return;
     }
-- 
cgit v1.2.1