summaryrefslogtreecommitdiff
path: root/src/homepage.cpp
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2009-10-16 18:19:10 +0200
committermatgic78 <matgic78@gmail.com>2009-10-16 18:19:10 +0200
commitfdcf95bcd6417a8812b74b87efa7672bfd78d2b1 (patch)
tree7e1be76bbc43ae4da47f37f12ce1f27ec45afc72 /src/homepage.cpp
parenti18n fixes (diff)
downloadrekonq-fdcf95bcd6417a8812b74b87efa7672bfd78d2b1.tar.xz
Show homepages titles on tabs ("favorites", "history"...)
Diffstat (limited to 'src/homepage.cpp')
-rw-r--r--src/homepage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index 98304877..078f2391 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -74,24 +74,30 @@ QString HomePage::rekonqHomePage(const KUrl &url)
QString menu = homePageMenu(url);
QString speed;
+ QString title;
if(url == KUrl("rekonq:allTabs"))
{
speed = fillAllTabs();
+ title = i18n("Open Tabs");
}
if(url == KUrl("rekonq:history"))
{
speed = fillHistory();
+ title = i18n("History");
}
if(url == KUrl("rekonq:bookmarks"))
{
speed = fillBookmarks();
+ title = i18n("Bookmarks");
}
if(url == KUrl("rekonq:home") || url == KUrl("rekonq:favorites"))
{
speed = fillFavorites();
+ title = i18n("Favorites");
}
QString html = QString(QLatin1String(file.readAll()))
+ .arg(title)
.arg(imagesPath)
.arg(menu)
.arg(speed)