forked from qt-creator/qt-creator
Turn code into links when holding Ctrl
Allows navigating the code using the mouse when pressing Ctrl. Suggested a few times and also seen in other IDEs.
This commit is contained in:
@@ -335,7 +335,6 @@ void VCSBaseEditor::mouseMoveEvent(QMouseEvent *e)
|
||||
sel.cursor = cursor;
|
||||
sel.cursor.select(QTextCursor::WordUnderCursor);
|
||||
sel.format.setFontUnderline(true);
|
||||
change = changeUnderCursor(cursor);
|
||||
sel.format.setProperty(QTextFormat::UserProperty, change);
|
||||
setExtraSelections(OtherSelection, QList<QTextEdit::ExtraSelection>() << sel);
|
||||
overrideCursor = true;
|
||||
|
||||
Reference in New Issue
Block a user