[vlc-commits] Qt: Avoid focus stealing of the tooltip on Win32

Ludovic Fauvet git at videolan.org
Thu Nov 27 12:37:02 CET 2014


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Nov 27 12:34:33 2014 +0100| [90c479c2e4c9f6d59db2230dfca67f7278e24b1b] | committer: Jean-Baptiste Kempf

Qt: Avoid focus stealing of the tooltip on Win32

Close #12060
Ref #12084

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=90c479c2e4c9f6d59db2230dfca67f7278e24b1b
---

 modules/gui/qt4/util/timetooltip.cpp |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/util/timetooltip.cpp b/modules/gui/qt4/util/timetooltip.cpp
index bb472d7..574eca9 100644
--- a/modules/gui/qt4/util/timetooltip.cpp
+++ b/modules/gui/qt4/util/timetooltip.cpp
@@ -33,12 +33,14 @@
 TimeTooltip::TimeTooltip( QWidget *parent ) :
     QWidget( parent )
 {
-    setWindowFlags( Qt::Window                  |
+    setWindowFlags(
+#if defined( Q_OS_WIN )
+                    Qt::ToolTip
+#else
+                    Qt::Window                  |
                     Qt::WindowStaysOnTopHint    |
                     Qt::FramelessWindowHint     |
                     Qt::X11BypassWindowManagerHint
-#if HAS_QT5
-                    | Qt::WindowDoesNotAcceptFocus
 #endif
                     );
 



More information about the vlc-commits mailing list