forked from qt-creator/qt-creator
Fix highlight artifacts in diff editor
Which appeared after pressing "..." mark and scrolling right. Change-Id: I779d4a7e76ebb01857d7313b5099a5482c455136 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1413,7 +1413,10 @@ void DiffEditorWidget::synchronizeFoldings(DiffViewEditorWidget *source, DiffVie
|
|||||||
sourceLayout->requestUpdate();
|
sourceLayout->requestUpdate();
|
||||||
sourceLayout->emitDocumentSizeChanged();
|
sourceLayout->emitDocumentSizeChanged();
|
||||||
}
|
}
|
||||||
source->updateFoldingHighlight(source->mapFromGlobal(QCursor::pos()));
|
|
||||||
|
QWidget *ea = source->extraArea();
|
||||||
|
if (ea->contentsRect().contains(ea->mapFromGlobal(QCursor::pos())))
|
||||||
|
source->updateFoldingHighlight(source->mapFromGlobal(QCursor::pos()));
|
||||||
|
|
||||||
BaseTextDocumentLayout *destinationLayout = qobject_cast<BaseTextDocumentLayout *>(destination->document()->documentLayout());
|
BaseTextDocumentLayout *destinationLayout = qobject_cast<BaseTextDocumentLayout *>(destination->document()->documentLayout());
|
||||||
if (destinationLayout) {
|
if (destinationLayout) {
|
||||||
|
|||||||
Reference in New Issue
Block a user