From 24fcdd9c16eecefdad42ec8b69b8db8f21b5aed2 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Thu, 27 Oct 2022 13:24:52 +0200 Subject: [PATCH] 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 --- .../coreplugin/find/highlightscrollbarcontroller.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp b/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp index 222631ad140..e2d0a7ab893 100644 --- a/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp +++ b/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp @@ -232,6 +232,12 @@ bool HighlightScrollBarOverlay::eventFilter(QObject *object, QEvent *event) case QEvent::ZOrderChange: raise(); break; + case QEvent::Show: + show(); + break; + case QEvent::Hide: + hide(); + break; default: break; }