forked from qt-creator/qt-creator
Editor: Removing comments
They are not really necessary. This workaround is used in quite a few places. Also, the commit message which introduces them (230445996816eafaa43e40341f382bf63d9d73a8) is already explanatory. Change-Id: Idb94ab77b47008e7867b9fba21843778aeaaebb7 Reviewed-on: http://codereview.qt.nokia.com/72 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
committed by
Fawzi Mohamed
parent
10dd9c9a8c
commit
2b2b5aec23
@@ -786,28 +786,24 @@ void BaseTextEditorWidget::gotoNextCharacterWithSelection()
|
||||
void BaseTextEditorWidget::gotoPreviousWord()
|
||||
{
|
||||
moveCursor(QTextCursor::PreviousWord);
|
||||
// workaround to ensure blinking cursor is visible after move
|
||||
setTextCursor(textCursor());
|
||||
}
|
||||
|
||||
void BaseTextEditorWidget::gotoPreviousWordWithSelection()
|
||||
{
|
||||
moveCursor(QTextCursor::PreviousWord, QTextCursor::KeepAnchor);
|
||||
// workaround to ensure blinking cursor is visible after move
|
||||
setTextCursor(textCursor());
|
||||
}
|
||||
|
||||
void BaseTextEditorWidget::gotoNextWord()
|
||||
{
|
||||
moveCursor(QTextCursor::NextWord);
|
||||
// workaround to ensure blinking cursor is visible after move
|
||||
setTextCursor(textCursor());
|
||||
}
|
||||
|
||||
void BaseTextEditorWidget::gotoNextWordWithSelection()
|
||||
{
|
||||
moveCursor(QTextCursor::NextWord, QTextCursor::KeepAnchor);
|
||||
// workaround to ensure blinking cursor is visible after move
|
||||
setTextCursor(textCursor());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user