Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ed8a1a1a
Commit
ed8a1a1a
authored
Jul 15, 2013
by
Jean-Baptiste Kempf
Browse files
Qt: use Q_OS_* in timetooltip for Win32 and OS/2
It might need more testing in some X11 setups on Windows
parent
104e257c
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/util/timetooltip.cpp
View file @
ed8a1a1a
...
@@ -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_
W
S_WIN ) || defined( Q_
W
S_
PM
)
#if defined( Q_
O
S_WIN ) || defined( Q_
O
S_
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_
W
S_
PM
#ifdef Q_
O
S_
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment