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 <qt-info@nokia.com>
This commit is contained in:
Jarek Kobus
2010-05-25 17:57:51 +02:00
parent ce3a90fc78
commit 1263babfc6

View 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();