Commit 07845306 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fixed the Goto Next/Previous Line actions

Due to the wrong enumerators being used, it was impossible to define
custom shortcuts for these actions.

Reviewed-by: mae
Task-number: QTCREATORBUG-2139
parent 8eecf8fc
...@@ -760,22 +760,22 @@ void BaseTextEditor::gotoLineEndWithSelection() ...@@ -760,22 +760,22 @@ void BaseTextEditor::gotoLineEndWithSelection()
void BaseTextEditor::gotoNextLine() void BaseTextEditor::gotoNextLine()
{ {
moveCursor(QTextCursor::NextRow); moveCursor(QTextCursor::Down);
} }
void BaseTextEditor::gotoNextLineWithSelection() void BaseTextEditor::gotoNextLineWithSelection()
{ {
moveCursor(QTextCursor::NextRow, QTextCursor::KeepAnchor); moveCursor(QTextCursor::Down, QTextCursor::KeepAnchor);
} }
void BaseTextEditor::gotoPreviousLine() void BaseTextEditor::gotoPreviousLine()
{ {
moveCursor(QTextCursor::PreviousRow); moveCursor(QTextCursor::Up);
} }
void BaseTextEditor::gotoPreviousLineWithSelection() void BaseTextEditor::gotoPreviousLineWithSelection()
{ {
moveCursor(QTextCursor::PreviousRow, QTextCursor::KeepAnchor); moveCursor(QTextCursor::Up, QTextCursor::KeepAnchor);
} }
void BaseTextEditor::gotoPreviousCharacter() void BaseTextEditor::gotoPreviousCharacter()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment