summaryrefslogtreecommitdiff
path: root/src/homepage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/homepage.cpp')
-rw-r--r--src/homepage.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index bd0fb22b..98060bed 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -74,18 +74,31 @@ QString HomePage::rekonqHomePage(const KUrl &url)
QString imagesPath = QString("file://") + KGlobal::dirs()->findResourceDir("data", "rekonq/pics/bg.png") + QString("rekonq/pics");
QString menu = homePageMenu(url);
- QString speed;
+ QString title, speed;
if(url == KUrl("rekonq:lastSites"))
+ {
+ title = "<h2>" + i18n("Last Visited Sites") + "</h2>";
speed = lastVisitedSites();
+ }
if(url == KUrl("rekonq:history"))
+ {
+ title = "<h2>" + i18n("History") + "</h2>";
speed = fillHistory();
+ }
if(url == KUrl("rekonq:bookmarks"))
+ {
+ title = "<h2>" + i18n("Bookmarks") + "</h2>";
speed = fillBookmarks();
+ }
if(url == KUrl("rekonq:home") || url == KUrl("rekonq:favorites"))
+ {
+ title = "<h2>" + i18n("Favorites") + "</h2>";
speed = fillFavorites();
+ }
QString html = QString(QLatin1String(file.readAll()))
.arg(imagesPath)
+ .arg(title)
.arg(menu)
.arg(speed)
;
@@ -194,7 +207,6 @@ QString HomePage::homePageMenu(KUrl currentUrl)
menu += "<img src=\"file:///" + loader->iconPath("rating", KIconLoader::Desktop) + "\" />";
menu += "Favorites</a></div>";
-
return menu;
}