Core: Hide Scrollbar highlight

This patch hides the scrollbar overlay when the Scrollbar itself
gets hidden, for example on mac for documents that fit into the
viewport.

Fixes: QTCREATORBUG-28336
Change-Id: I2cb61affe38d0066a3d6f3ca012f97674b3d1539
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-10-27 13:24:52 +02:00
parent e61e92d016
commit 24fcdd9c16

View File

@@ -232,6 +232,12 @@ bool HighlightScrollBarOverlay::eventFilter(QObject *object, QEvent *event)
case QEvent::ZOrderChange: case QEvent::ZOrderChange:
raise(); raise();
break; break;
case QEvent::Show:
show();
break;
case QEvent::Hide:
hide();
break;
default: default:
break; break;
} }