]> cloud.milkyroute.net Git - dolphin.git/commit
KItemListKeyboardSearchManager: make it possible to choose the timeout
authorFrank Reininghaus <frank78ac@googlemail.com>
Thu, 29 Mar 2012 17:56:53 +0000 (19:56 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Thu, 29 Mar 2012 18:05:49 +0000 (20:05 +0200)
commitaced85db1f7c72268860f0368402cf97f34e55c2
treef0b47ebdbc5e5f6549d76d3ec23c697a6e2c9e2d
parentbd26bf2a20fba80c33ad1e8438592bddc4bea4aa
KItemListKeyboardSearchManager: make it possible to choose the timeout

It's now possible to change the timeout, after which any call of
KItemListKeyboardSearchManager::addKeys(const QString&) starts a new
search, from the default value of 5000 milliseconds. This is not used
in Dolphin at the moment, but it permits to reduce the timeout to a
small value in the unit test. Before this change, the unit test took
more than 5 seconds to complete.
(cherry picked from commit 82fc1b54bd01768f50aba7d328cdcde7de1483d7)
src/kitemviews/kitemlistkeyboardsearchmanager.cpp
src/kitemviews/kitemlistkeyboardsearchmanager_p.h
src/tests/kitemlistkeyboardsearchmanagertest.cpp