From 07845306dbabf59d3dcc9b85f30f4e998d8806e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Mon, 23 Aug 2010 11:05:49 +0200 Subject: 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 --- src/plugins/texteditor/basetexteditor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 601e64555c..b856d941eb 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -760,22 +760,22 @@ void BaseTextEditor::gotoLineEndWithSelection() void BaseTextEditor::gotoNextLine() { - moveCursor(QTextCursor::NextRow); + moveCursor(QTextCursor::Down); } void BaseTextEditor::gotoNextLineWithSelection() { - moveCursor(QTextCursor::NextRow, QTextCursor::KeepAnchor); + moveCursor(QTextCursor::Down, QTextCursor::KeepAnchor); } void BaseTextEditor::gotoPreviousLine() { - moveCursor(QTextCursor::PreviousRow); + moveCursor(QTextCursor::Up); } void BaseTextEditor::gotoPreviousLineWithSelection() { - moveCursor(QTextCursor::PreviousRow, QTextCursor::KeepAnchor); + moveCursor(QTextCursor::Up, QTextCursor::KeepAnchor); } void BaseTextEditor::gotoPreviousCharacter() -- cgit v1.2.1