Commit ed8a1a1a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: use Q_OS_* in timetooltip for Win32 and OS/2

It might need more testing in some X11 setups on Windows
parent 104e257c
...@@ -42,7 +42,7 @@ TimeTooltip::TimeTooltip( QWidget *parent ) : ...@@ -42,7 +42,7 @@ TimeTooltip::TimeTooltip( QWidget *parent ) :
// a paintEvent occurs. This should save some CPU cycles. // a paintEvent occurs. This should save some CPU cycles.
setAttribute( Qt::WA_OpaquePaintEvent ); setAttribute( Qt::WA_OpaquePaintEvent );
#if defined( Q_WS_WIN ) || defined( Q_WS_PM ) #if defined( Q_OS_WIN ) || defined( Q_OS_OS2 )
/* /*
- This attribute is required on Windows and OS/2 to avoid focus stealing of other windows. - This attribute is required on Windows and OS/2 to avoid focus stealing of other windows.
- When set on Linux the TimeTooltip appears behind the FSController in fullscreen. - When set on Linux the TimeTooltip appears behind the FSController in fullscreen.
...@@ -142,7 +142,7 @@ void TimeTooltip::setTip( const QPoint& target, const QString& time, const QStri ...@@ -142,7 +142,7 @@ void TimeTooltip::setTip( const QPoint& target, const QString& time, const QStri
void TimeTooltip::show() void TimeTooltip::show()
{ {
QWidget::setVisible( mInitialized ); QWidget::setVisible( mInitialized );
#ifdef Q_WS_PM #ifdef Q_OS_OS2
// Bring a tooltip on the top // Bring a tooltip on the top
// Without this, tooltip does not appear on fullscreen // Without this, tooltip does not appear on fullscreen
// from the second fullscreen state change // from the second fullscreen state change
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment