summaryrefslogtreecommitdiff
path: root/src/homepage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-14 00:24:08 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-14 18:36:48 +0200
commitf59b52ea590fcef4f76b8691edec542e133c1b78 (patch)
tree6c391fbe808860d9f08256c081d97a4b18c6b624 /src/homepage.cpp
parentFixing a bit examples, positions, links and so on.. (diff)
downloadrekonq-f59b52ea590fcef4f76b8691edec542e133c1b78.tar.xz
Recently closed tabs: first implementation
Diffstat (limited to 'src/homepage.cpp')
-rw-r--r--src/homepage.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index 20276f57..6a327b3a 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -32,6 +32,8 @@
#include "historymodels.h"
#include "bookmarks.h"
#include "application.h"
+#include "mainwindow.h"
+#include "mainview.h"
#include "websnap.h"
// KDE Includes
@@ -143,9 +145,15 @@ QString HomePage::searchEngines()
QString HomePage::recentlyClosedTabs()
{
- QString closedtabs = "<h2>Recently closed tabs</h2>";
+ QString closed = "<h2>Recently closed tabs</h2>";
- return closedtabs;
+ KUrl::List links = Application::instance()->mainWindow()->mainView()->recentlyClosedTabs();
+
+ foreach(const KUrl &url, links)
+ {
+ closed += "<a href=\"" + url.prettyUrl() + "\">" + url.prettyUrl() + "</a><br />";
+ }
+ return closed;
}
// QString HomePage::fillHistory()