Highlight matching parentheses under text cursor

In replace mode highlight parentheses that are right under the block
cursor.

Change-Id: I6cef5fe302b0797c66ed9541d28ec495fb1db1d1
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
Lukas Holecek
2012-09-24 19:29:26 +02:00
committed by hjk
parent f750bba667
commit 5442e745e7

View File

@@ -5015,6 +5015,8 @@ void BaseTextEditorWidget::_q_matchParentheses()
QTextCursor backwardMatch = textCursor();
QTextCursor forwardMatch = textCursor();
if (overwriteMode())
backwardMatch.movePosition(QTextCursor::Right);
const TextBlockUserData::MatchType backwardMatchType = TextBlockUserData::matchCursorBackward(&backwardMatch);
const TextBlockUserData::MatchType forwardMatchType = TextBlockUserData::matchCursorForward(&forwardMatch);