diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-01-22 23:37:27 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-01-22 23:37:27 +0100 |
commit | f610d888cc1738ed94cc6286db65b6b40e8e1c4e (patch) | |
tree | 9a4d895e74507099443e4a5d3799fe69b63c3272 /src/history | |
parent | Set non null border in the rekonq pages (diff) | |
download | rekonq-f610d888cc1738ed94cc6286db65b6b40e8e1c4e.tar.xz |
History page, added ability to remove items from
Diffstat (limited to 'src/history')
-rw-r--r-- | src/history/historymanager.cpp | 12 | ||||
-rw-r--r-- | src/history/historymanager.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/history/historymanager.cpp b/src/history/historymanager.cpp index 2b84ddc8..2fab9cf1 100644 --- a/src/history/historymanager.cpp +++ b/src/history/historymanager.cpp @@ -244,6 +244,18 @@ void HistoryManager::removeHistoryEntry(const KUrl &url, const QString &title) } +void HistoryManager::removeHistoryLocationEntry(int value) +{ + if (value < 0) + return; + + HistoryItem item = m_history.at(value); + m_lastSavedUrl.clear(); + m_history.removeOne(item); + emit entryRemoved(item); +} + + QList<HistoryItem> HistoryManager::find(const QString &text) { QList<HistoryItem> list; diff --git a/src/history/historymanager.h b/src/history/historymanager.h index c1e9f1cd..a618c672 100644 --- a/src/history/historymanager.h +++ b/src/history/historymanager.h @@ -123,6 +123,7 @@ public: bool historyContains(const QString &url) const; void addHistoryEntry(const KUrl &url, const QString &title); void removeHistoryEntry(const KUrl &url, const QString &title = QString()); + void removeHistoryLocationEntry(int value); QList<HistoryItem> find(const QString &text); |