1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[Models] Decrease the delay for filtering to 300ms

This commit is contained in:
nowrep 2014-02-14 20:28:25 +01:00
parent f9d3c102ec
commit d422ce3767
2 changed files with 3 additions and 2 deletions

View File

@ -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()));
}

View File

@ -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()));
}