>From fbd1cb2d6fdb110eeb80ac34c5051b1795b63483 Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <komh78@gmail.com>
Date: Tue, 9 Oct 2012 22:41:33 +0900
Subject: [PATCH] Qt: Bring a timetooltip on the top on OS/2

This fixes the problem that a timetooltip does not appear on fullscreen
from the second fullscreen state change.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit d473eeede4ab8b14902be07f330764f42dea181a)

Signed-off-by: KO Myung-Hun <komh@chollian.net>
---
 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 d031e79..4613680 100644
--- a/modules/gui/qt4/util/timetooltip.cpp
+++ b/modules/gui/qt4/util/timetooltip.cpp
@@ -126,6 +126,13 @@ void TimeTooltip::setText( const QString& time, const QString& text )
 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

