From 1263babfc6c96eb56613182310cb5c9eabcd8dc0 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Tue, 25 May 2010 17:57:51 +0200 Subject: [PATCH] Enable line numbers selection in pro editor Make it possible to select multiple lines in pro editor by d'n'd over the line numbers like in the cpp editor. Reviewed-by: mae --- src/plugins/texteditor/basetexteditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 2f43968ec8..681653a6b5 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -3497,7 +3497,7 @@ void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e) toggleBlockVisible(c); d->moveCursorVisible(false); } - } else if (d->m_marksVisible && e->pos().x() > markWidth) { + } else if (d->m_lineNumbersVisible && e->pos().x() > markWidth) { QTextCursor selection = cursor; selection.setVisualNavigation(true); d->extraAreaSelectionAnchorBlockNumber = selection.blockNumber(); -- 2.11.0