From 2b2b5aec23482735fa6876144fd458afae1bdd03 Mon Sep 17 00:00:00 2001 From: Leandro Melo Date: Mon, 23 May 2011 16:13:50 +0200 Subject: [PATCH] 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 Reviewed-by: Fawzi Mohamed --- src/plugins/texteditor/basetexteditor.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index d103b60d5ab..565ed6a01d9 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -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()); }