OSDN Git Service

Enable line numbers selection in pro editor
authorJarek Kobus <jkobus@trolltech.com>
Tue, 25 May 2010 15:57:51 +0000 (17:57 +0200)
committerJarek Kobus <jkobus@trolltech.com>
Tue, 25 May 2010 15:58:54 +0000 (17:58 +0200)
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 <qt-info@nokia.com>
src/plugins/texteditor/basetexteditor.cpp

index 2f43968..681653a 100644 (file)
@@ -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();