Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
697766fe
Commit
697766fe
authored
Jul 17, 2013
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: raise the tooltip so it stays in front of the fullscreen controller
parent
9653db32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
modules/gui/qt4/util/timetooltip.cpp
modules/gui/qt4/util/timetooltip.cpp
+3
-9
modules/gui/qt4/util/timetooltip.hpp
modules/gui/qt4/util/timetooltip.hpp
+0
-1
No files found.
modules/gui/qt4/util/timetooltip.cpp
View file @
697766fe
...
...
@@ -31,7 +31,7 @@
#define TIP_HEIGHT 5
TimeTooltip
::
TimeTooltip
(
QWidget
*
parent
)
:
QWidget
(
parent
)
,
mInitialized
(
false
)
QWidget
(
parent
)
{
setWindowFlags
(
Qt
::
Window
|
Qt
::
WindowStaysOnTopHint
|
...
...
@@ -132,7 +132,6 @@ void TimeTooltip::buildPath()
void
TimeTooltip
::
setTip
(
const
QPoint
&
target
,
const
QString
&
time
,
const
QString
&
text
)
{
mInitialized
=
true
;
mDisplayedText
=
time
;
if
(
!
text
.
isEmpty
()
)
mDisplayedText
.
append
(
" - "
).
append
(
text
);
...
...
@@ -146,18 +145,13 @@ void TimeTooltip::setTip( const QPoint& target, const QString& time, const QStri
}
update
();
raise
();
}
void
TimeTooltip
::
show
()
{
setVisible
(
true
);
#ifdef Q_OS_OS2
// 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
raise
();
}
void
TimeTooltip
::
paintEvent
(
QPaintEvent
*
)
...
...
modules/gui/qt4/util/timetooltip.hpp
View file @
697766fe
...
...
@@ -54,7 +54,6 @@ private:
QPainterPath
mPainterPath
;
QBitmap
mMask
;
int
mTipX
;
bool
mInitialized
;
};
#endif // TIMETOOLTIP_H
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