Commit 2b2b5aec authored by Leandro Melo's avatar Leandro Melo Committed by Fawzi Mohamed

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/72Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@nokia.com>
parent 10dd9c9a
......@@ -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());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment