[vlc-devel] [PATCH] Qt: Bring a timetooltip on the top on OS/2

KO Myung-Hun komh78 at gmail.com
Tue Oct 9 15:41:33 CEST 2012


This fixes the problem that a timetooltip does not appear on fullscreen
from the second fullscreen state change.
---
 modules/gui/qt4/util/timetooltip.cpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/util/timetooltip.cpp b/modules/gui/qt4/util/timetooltip.cpp
index 1cff329..0f5666c 100644
--- a/modules/gui/qt4/util/timetooltip.cpp
+++ b/modules/gui/qt4/util/timetooltip.cpp
@@ -142,6 +142,13 @@ void TimeTooltip::setTip( const QPoint& target, const QString& time, const QStri
 void TimeTooltip::show()
 {
     QWidget::setVisible( mInitialized );
+#ifdef Q_WS_PM
+    // Bring a tooltip on the top
+    // Without this, tooltip does not appear on fullscreen
+    // from the second fullscreen state change
+    if( mInitialized )
+        QWidget::raise();
+#endif
 }
 
 void TimeTooltip::paintEvent( QPaintEvent * )
-- 
1.7.3.2




More information about the vlc-devel mailing list