diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-11-01 13:04:26 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-11-01 13:04:26 +0100 |
commit | 2147abb0c02358b512925191d3e545574ec80e08 (patch) | |
tree | 5ad620f6ef7658b619768bc7cfc2de94a5dd71f4 /src/browserapplication.cpp | |
parent | Various improvements on the street from Qt demo browser (diff) | |
download | rekonq-2147abb0c02358b512925191d3e545574ec80e08.tar.xz |
Localizing strings..
Diffstat (limited to 'src/browserapplication.cpp')
-rw-r--r-- | src/browserapplication.cpp | 14 |
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; } + |