summaryrefslogtreecommitdiff
path: root/src/history/historymanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-01-22 23:37:27 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-01-22 23:37:27 +0100
commitf610d888cc1738ed94cc6286db65b6b40e8e1c4e (patch)
tree9a4d895e74507099443e4a5d3799fe69b63c3272 /src/history/historymanager.cpp
parentSet non null border in the rekonq pages (diff)
downloadrekonq-f610d888cc1738ed94cc6286db65b6b40e8e1c4e.tar.xz
History page, added ability to remove items from
Diffstat (limited to 'src/history/historymanager.cpp')
-rw-r--r--src/history/historymanager.cpp12
1 files changed, 12 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;