From d422ce376715fdcaf8ef0d7053857d4d76cadd85 Mon Sep 17 00:00:00 2001 From: nowrep Date: Fri, 14 Feb 2014 20:28:25 +0100 Subject: [PATCH] [Models] Decrease the delay for filtering to 300ms --- src/lib/bookmarks/bookmarksmodel.cpp | 2 +- src/lib/history/historymodel.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/bookmarks/bookmarksmodel.cpp b/src/lib/bookmarks/bookmarksmodel.cpp index 3619701de..4f1ddbfa6 100644 --- a/src/lib/bookmarks/bookmarksmodel.cpp +++ b/src/lib/bookmarks/bookmarksmodel.cpp @@ -313,7 +313,7 @@ BookmarksFilterModel::BookmarksFilterModel(QAbstractItemModel* parent) m_filterTimer = new QTimer(this); m_filterTimer->setSingleShot(true); - m_filterTimer->setInterval(500); + m_filterTimer->setInterval(300); connect(m_filterTimer, SIGNAL(timeout()), this, SLOT(startFiltering())); } diff --git a/src/lib/history/historymodel.cpp b/src/lib/history/historymodel.cpp index 998c9320d..59676f159 100644 --- a/src/lib/history/historymodel.cpp +++ b/src/lib/history/historymodel.cpp @@ -512,6 +512,7 @@ void HistoryModel::init() } } +// HistoryFilterModel HistoryFilterModel::HistoryFilterModel(QAbstractItemModel* parent) : QSortFilterProxyModel(parent) { @@ -520,7 +521,7 @@ HistoryFilterModel::HistoryFilterModel(QAbstractItemModel* parent) m_filterTimer = new QTimer(this); m_filterTimer->setSingleShot(true); - m_filterTimer->setInterval(500); + m_filterTimer->setInterval(300); connect(m_filterTimer, SIGNAL(timeout()), this, SLOT(startFiltering())); }