summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-08-23 11:05:49 +0200
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-08-23 11:21:03 +0200
commit07845306dbabf59d3dcc9b85f30f4e998d8806e4 (patch)
tree7213ce2a02342382bee3281be712e065f1053af2
parent8eecf8fcd85b97406c3a7ee29d45540855e40830 (diff)
downloadqt-creator-07845306dbabf59d3dcc9b85f30f4e998d8806e4.tar.gz
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
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp8
1 files 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()