summaryrefslogtreecommitdiff
path: root/src/history/historymodels.cpp
diff options
context:
space:
mode:
authorJon Ander Peñalba <jonan88@gmail.com>2010-08-30 00:05:47 +0200
committerJon Ander Peñalba <jonan88@gmail.com>2010-08-30 16:58:35 +0200
commit51ef0020a78bd216cb357eaa574161299fa0b608 (patch)
tree9c5f7ef427b79eaa3df14cf030a646e9508da043 /src/history/historymodels.cpp
parentMerge branch 'master' of gitorious.org:rekonq/mainline (diff)
downloadrekonq-51ef0020a78bd216cb357eaa574161299fa0b608.tar.xz
Use the same FilterProxyModel for the bookmarks and history panels
Diffstat (limited to 'src/history/historymodels.cpp')
-rw-r--r--src/history/historymodels.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/history/historymodels.cpp b/src/history/historymodels.cpp
index a820db0f..0f137e0e 100644
--- a/src/history/historymodels.cpp
+++ b/src/history/historymodels.cpp
@@ -720,22 +720,3 @@ void HistoryTreeModel::sourceRowsRemoved(const QModelIndex &parent, int start, i
endRemoveRows();
}
}
-
-
-// ------------------------------------------------------------------------------------------------------------------------------------------
-
-
-
-TreeProxyModel::TreeProxyModel(QObject *parent) : QSortFilterProxyModel(parent)
-{
- setSortRole(HistoryModel::DateTimeRole);
- setFilterCaseSensitivity(Qt::CaseInsensitive);
-}
-
-
-bool TreeProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
-{
- if (!source_parent.isValid())
- return true;
- return QSortFilterProxyModel::filterAcceptsRow(source_row, source_parent);
-}