Fix wrong cursor in vcs log editor

When cursor leaves a change, reset its shape and remove underline on the
change.

Change-Id: Idedafefc57338a32fdaa773fc4a41c0f0527a5b8
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Aurélien Gâteau
2012-01-26 14:10:28 +01:00
committed by Tobias Hunger
parent de0fcfaa0a
commit 7e04a679ae

View File

@@ -952,11 +952,11 @@ void VcsBaseEditorWidget::mouseMoveEvent(QMouseEvent *e)
handler->highlightCurrentContents(); handler->highlightCurrentContents();
overrideCursor = true; overrideCursor = true;
cursorShape = Qt::PointingHandCursor; cursorShape = Qt::PointingHandCursor;
} else {
setExtraSelections(OtherSelection, QList<QTextEdit::ExtraSelection>());
overrideCursor = true;
cursorShape = Qt::IBeamCursor;
} }
} else {
setExtraSelections(OtherSelection, QList<QTextEdit::ExtraSelection>());
overrideCursor = true;
cursorShape = Qt::IBeamCursor;
} }
TextEditor::BaseTextEditorWidget::mouseMoveEvent(e); TextEditor::BaseTextEditorWidget::mouseMoveEvent(e);