forked from qt-creator/qt-creator
Find: Increase delay between search highlight updates.
Currently when you type quickly in the current-file find text edit it may feel slow because the highlights are updated for each keystroke. This change increases the minimal delay between highlight updates from 10 ms to 50 ms. That means the delay is still barely noticeable, but changing the search text stops feeling sluggish. Change-Id: I41cf2a3282bdbd81afb6f6afb84d52fca16dd184 Reviewed-on: http://codereview.qt-project.org/5876 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -4761,7 +4761,7 @@ void BaseTextEditorWidget::highlightSearchResults(const QString &txt, Find::Find
|
||||
Qt::CaseSensitive : Qt::CaseInsensitive);
|
||||
d->m_findFlags = findFlags;
|
||||
|
||||
d->m_delayedUpdateTimer->start(10);
|
||||
d->m_delayedUpdateTimer->start(50);
|
||||
}
|
||||
|
||||
int BaseTextEditorWidget::verticalBlockSelectionFirstColumn() const
|
||||
|
||||
Reference in New Issue
Block a user