From 591b4c3cb201c3d405f4a0a168c65bfe83325c0c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 15 Feb 2012 16:54:55 +0100 Subject: New History Manager, NO MORE QWebHistoryInterface based. We are just saving datas on our own, I don't like QtWebKit APIs to do it. We now call addHistoryEntry(url, title) on loadFinished. Data structure will remain the same as usual, but I think API is better and data are now saved when we really have them ready. REVIEW:104257 --- src/history/historymodels.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/history/historymodels.cpp') diff --git a/src/history/historymodels.cpp b/src/history/historymodels.cpp index 16054054..d50d28a0 100644 --- a/src/history/historymodels.cpp +++ b/src/history/historymodels.cpp @@ -66,7 +66,6 @@ HistoryModel::HistoryModel(HistoryManager *history, QObject *parent) connect(m_historyManager, SIGNAL(historyReset()), this, SLOT(historyReset())); connect(m_historyManager, SIGNAL(entryRemoved(HistoryItem)), this, SLOT(historyReset())); connect(m_historyManager, SIGNAL(entryAdded(HistoryItem)), this, SLOT(entryAdded())); - connect(m_historyManager, SIGNAL(entryUpdated(int)), this, SLOT(entryUpdated(int))); } @@ -83,13 +82,6 @@ void HistoryModel::entryAdded() } -void HistoryModel::entryUpdated(int offset) -{ - QModelIndex idx = index(offset, 0); - emit dataChanged(idx, idx); -} - - QVariant HistoryModel::headerData(int section, Qt::Orientation orientation, int role) const { if (orientation == Qt::Horizontal -- cgit v1.2.1