forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user