diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-01-03 18:31:13 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-03 18:31:13 +0100 |
commit | 4b363ed35e880a6a74ac7784fcad713c62902f3a (patch) | |
tree | c2fcf830a13d10c45ac15ad947fb20b4e381a1e2 /src/mainview.h | |
parent | Do NOT load previews if not present (diff) | |
download | rekonq-4b363ed35e880a6a74ac7784fcad713c62902f3a.tar.xz |
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
Diffstat (limited to 'src/mainview.h')
-rw-r--r-- | src/mainview.h | 8 |
1 files changed, 5 insertions, 3 deletions
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 <adjam7 at gmail dot com> +* Copyright (C) 2008-2012 by Andrea Diamantini <adjam7 at gmail dot com> * Copyright (C) 2009 by Paweł Prażak <pawelprazak at gmail dot com> * Copyright (C) 2009-2011 by Lionel Chauvin <megabigbug@yahoo.fr> * Copyright (C) 2010 by Matthieu Gicquel <matgic78 at gmail dot com> @@ -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); |