Increase the delay for folding blocks

Details:
40 ms seems a bit too short. We should at least allow the mouse
cursor to pass undetected. The 10 ms delay seems a bit redundant.
This commit is contained in:
Jens Bache-Wiig
2009-06-04 16:40:34 +02:00
parent f98b937b8c
commit d10389b9c5

View File

@@ -2732,8 +2732,9 @@ void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e)
}
if (highlightBlockNumber != d->extraAreaHighlightCollapseBlockNumber
|| highlightColumn != d->extraAreaHighlightCollapseColumn)
d->m_highlightBlocksTimer->start(d->m_highlightBlocksInfo.isEmpty() ? 40 : 10);
|| highlightColumn != d->extraAreaHighlightCollapseColumn) {
d->m_highlightBlocksTimer->start(d->m_highlightBlocksInfo.isEmpty() ? 120 : 0);
}
}
if (e->type() == QEvent::MouseButtonPress || e->type() == QEvent::MouseButtonDblClick) {