From e50a768e44c4ac30c8e180e410791841ce1f2f13 Mon Sep 17 00:00:00 2001 From: Voczi Date: Wed, 15 May 2024 14:13:53 +0200 Subject: [PATCH] Use SplashScreen flag for all aqt tooltips (#3194) * Set custom tooltip flag as SplashScreen Prevents tooltip from showing when parent is out of focus * Update CONTRIBUTORS --- CONTRIBUTORS | 1 + qt/aqt/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 47885f783..dda44ec2b 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -173,6 +173,7 @@ jthulhu Escape0707 Loudwig Wu Yi-Wei +Voczi ******************** diff --git a/qt/aqt/utils.py b/qt/aqt/utils.py index d89c9fbf6..e4448084f 100644 --- a/qt/aqt/utils.py +++ b/qt/aqt/utils.py @@ -976,7 +976,7 @@ def tooltip( ) lab.setFrameStyle(QFrame.Shape.Panel) lab.setLineWidth(2) - lab.setWindowFlags(Qt.WindowType.ToolTip) + lab.setWindowFlags(Qt.WindowType.SplashScreen) if not theme_manager.night_mode: p = QPalette() p.setColor(QPalette.ColorRole.Window, QColor("#feffc4"))