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
This commit is contained in:
Voczi 2024-05-15 14:13:53 +02:00 committed by GitHub
parent c9dccb5217
commit e50a768e44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -173,6 +173,7 @@ jthulhu <https://github.com/jthulhu>
Escape0707 <tothesong@gmail.com>
Loudwig <https://github.com/Loudwig>
Wu Yi-Wei <https://github.com/Ianwu0812>
Voczi <dev@voczi.com>
********************

View file

@ -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"))