forked from qt-creator/qt-creator
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:
committed by
Tobias Hunger
parent
de0fcfaa0a
commit
7e04a679ae
@@ -952,12 +952,12 @@ void VcsBaseEditorWidget::mouseMoveEvent(QMouseEvent *e)
|
|||||||
handler->highlightCurrentContents();
|
handler->highlightCurrentContents();
|
||||||
overrideCursor = true;
|
overrideCursor = true;
|
||||||
cursorShape = Qt::PointingHandCursor;
|
cursorShape = Qt::PointingHandCursor;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
setExtraSelections(OtherSelection, QList<QTextEdit::ExtraSelection>());
|
setExtraSelections(OtherSelection, QList<QTextEdit::ExtraSelection>());
|
||||||
overrideCursor = true;
|
overrideCursor = true;
|
||||||
cursorShape = Qt::IBeamCursor;
|
cursorShape = Qt::IBeamCursor;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
TextEditor::BaseTextEditorWidget::mouseMoveEvent(e);
|
TextEditor::BaseTextEditorWidget::mouseMoveEvent(e);
|
||||||
|
|
||||||
if (overrideCursor)
|
if (overrideCursor)
|
||||||
|
Reference in New Issue
Block a user