summaryrefslogtreecommitdiff
path: root/src/mainview.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/mainview.cpp
parentFixing a bit examples, positions, links and so on.. (diff)
downloadrekonq-f59b52ea590fcef4f76b8691edec542e133c1b78.tar.xz
Recently closed tabs: first implementation
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 3836ddd0..a40729a3 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -176,6 +176,8 @@ void MainView::clear()
/// TODO What exactly do we need to clear here?
m_urlBar->clearHistory();
m_urlBar->clear();
+
+ m_recentlyClosedTabs.clear();
}
@@ -403,11 +405,13 @@ void MainView::slotCloseTab(int index)
int risp = KMessageBox::questionYesNo(this,
i18n("You have modified this page and when closing it you would lose the modifications.\n"
"Do you really want to close this page?\n"),
- i18n("Do you really want to close this page?"));
+ i18n("Closing tab confirmation"));
if (risp == KMessageBox::No)
return;
}
hasFocus = tab->hasFocus();
+
+ m_recentlyClosedTabs.prepend(tab->url());
}
QWidget *webView = widget(index);
@@ -583,3 +587,9 @@ void MainView::resizeEvent(QResizeEvent *event)
{
KTabWidget::resizeEvent(event);
}
+
+
+KUrl::List MainView::recentlyClosedTabs()
+{
+ return m_recentlyClosedTabs;
+}