From 4b363ed35e880a6a74ac7784fcad713c62902f3a Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 3 Jan 2012 18:31:13 +0100 Subject: improve closed tabs management - remove reopened tabs from the closed tabs list. - limit them to MAX 8 elements (it seems enough to me) - save history also when there is just one tab closed - DON'T save history when you opened a "rekonq" page BUG:271224 --- src/mainview.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/mainview.h') diff --git a/src/mainview.h b/src/mainview.h index 4e6f1bbb..28185e48 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -2,7 +2,7 @@ * * This file is a part of the rekonq project * -* Copyright (C) 2008-2011 by Andrea Diamantini +* Copyright (C) 2008-2012 by Andrea Diamantini * Copyright (C) 2009 by Paweł Prażak * Copyright (C) 2009-2011 by Lionel Chauvin * Copyright (C) 2010 by Matthieu Gicquel @@ -106,6 +106,8 @@ public: return m_recentlyClosedTabs; } + void restoreClosedTab(int i, bool inNewTab = true); + Q_SIGNALS: // current tab signals void currentTitle(const QString &url); @@ -144,8 +146,6 @@ public Q_SLOTS: void nextTab(); void previousTab(); - void openLastClosedTab(); - void openClosedTab(); void switchToTab(const int index); void loadFavorite(const int index); @@ -164,6 +164,8 @@ private Q_SLOTS: void windowCloseRequested(); + void openClosedTab(); + protected: virtual void resizeEvent(QResizeEvent *event); -- cgit v1.2.1