From 4a55f69e48276a6ea8230fd415ec48e86ba13331 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 22 May 2024 17:06:37 +0700 Subject: [PATCH] Revert "Use SplashScreen flag for all aqt tooltips (#3194)" This reverts commit e50a768e44c4ac30c8e180e410791841ce1f2f13. This appears to have caused a regression with keyboard shortcuts https://forums.ankiweb.net/t/anki-24-06-release-candidate/44926/14 --- CONTRIBUTORS | 1 - qt/aqt/utils.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index dda44ec2b..47885f783 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -173,7 +173,6 @@ jthulhu Escape0707 Loudwig Wu Yi-Wei -Voczi ******************** diff --git a/qt/aqt/utils.py b/qt/aqt/utils.py index e4448084f..d89c9fbf6 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.SplashScreen) + lab.setWindowFlags(Qt.WindowType.ToolTip) if not theme_manager.night_mode: p = QPalette() p.setColor(QPalette.ColorRole.Window, QColor("#feffc4"))