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
This commit is contained in:
Thorbjørn Lindeijer
2010-08-23 11:05:49 +02:00
parent 8eecf8fcd8
commit 07845306db

View File

@@ -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()