summaryrefslogtreecommitdiff
path: root/src/browserapplication.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-11-01 13:04:26 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-11-01 13:04:26 +0100
commit2147abb0c02358b512925191d3e545574ec80e08 (patch)
tree5ad620f6ef7658b619768bc7cfc2de94a5dd71f4 /src/browserapplication.cpp
parentVarious improvements on the street from Qt demo browser (diff)
downloadrekonq-2147abb0c02358b512925191d3e545574ec80e08.tar.xz
Localizing strings..
Diffstat (limited to 'src/browserapplication.cpp')
-rw-r--r--src/browserapplication.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/browserapplication.cpp b/src/browserapplication.cpp
index 60e1d283..6d4e08fa 100644
--- a/src/browserapplication.cpp
+++ b/src/browserapplication.cpp
@@ -152,8 +152,7 @@ void BrowserApplication::quitBrowser()
if (tabCount > 1) {
int ret = QMessageBox::warning(mainWindow(), QString(),
- tr("There are %1 windows and %2 tabs open\n"
- "Do you want to quit anyway?").arg(m_mainWindows.count()).arg(tabCount),
+ i18n("There are ") + QString( m_mainWindows.count() ) + i18n(" windows and ") + QString(tabCount) + i18n("tabs open\n"),
QMessageBox::Yes | QMessageBox::No,
QMessageBox::No);
if (ret == QMessageBox::No)
@@ -461,12 +460,13 @@ BookmarksManager *BrowserApplication::bookmarksManager()
-QIcon BrowserApplication::icon(const QUrl &url) const
+KIcon BrowserApplication::icon(const QUrl &url) const
{
- QIcon icon = QWebSettings::iconForUrl(url);
+ KIcon icon = KIcon( QWebSettings::iconForUrl(url) );
if (!icon.isNull())
- return icon.pixmap(16, 16);
+ return icon;
if (m_defaultIcon.isNull())
- m_defaultIcon = QIcon(QLatin1String(":defaulticon.png"));
- return m_defaultIcon.pixmap(16, 16);
+ m_defaultIcon = KIcon("rekonq");
+ return m_defaultIcon;
}
+