summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-11 11:20:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-11 11:20:24 +0200
commita32b1a830acaaeda5caa070d046e5676fa8e9734 (patch)
tree417efb2d3e8976a72d52a0a8bd18b87a40318d8d /src/mainview.cpp
parentAdd "days" word to better explain the adblock update interval (diff)
downloadrekonq-a32b1a830acaaeda5caa070d046e5676fa8e9734.tar.xz
(Re)-open closed tabs
tabbar actions & CTRL + SHIFT + T shortcut for the last Johannes Zellner's patch. Thanks :)
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 6179af80..e703976d 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -637,6 +637,22 @@ void MainView::previousTab()
setCurrentIndex(next);
}
+void MainView::openClosedTabs()
+{
+ foreach (const HistoryItem &item, recentlyClosedTabs())
+ {
+ Application::instance()->loadUrl( KUrl(item.url), Rekonq::SettingOpenTab);
+ }
+}
+
+void MainView::openClosedTab()
+{
+ KAction *action = qobject_cast<KAction *>(sender());
+ if (action)
+ {
+ Application::instance()->loadUrl(action->data().toUrl(), Rekonq::SettingOpenTab);
+ }
+}
QLabel *MainView::animatedLoading(int index, bool addMovie)
{