Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
439
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
c189ba65
Commit
c189ba65
authored
3 months ago
by
Fatih Uzunoğlu
Committed by
Steve Lhomme
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
qml: try to show tool tip after its position is adjusted
parent
ebcaa966
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Pipeline
#540104
passed with stages
in 40 minutes and 7 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/qt/widgets/qml/ToolTipExt.qml
+17
-0
17 additions, 0 deletions
modules/gui/qt/widgets/qml/ToolTipExt.qml
with
17 additions
and
0 deletions
modules/gui/qt/widgets/qml/ToolTipExt.qml
+
17
−
0
View file @
c189ba65
...
...
@@ -44,6 +44,23 @@ T.ToolTip {
control
.
popupType
=
1
// Popup.Window
}
// NOTE: The tool tip often moves around, particularly noticable
// with the attached (global) tool tip, and pointing tool
// tip. Ideally, we could override property `visible` and
// call `QQuickPopup::open()` with `Qt.callLater()`, but
// the property is marked as FINAL. At the same time,
// Qt disables the timer when the delay is 0, ideally we
// need a timer with 0 delay, but 1 millisecond should
// not be a big deal.
// NOTE: Mispositioned tool tip upon being visible is observed
// especially with the independent window (`Popup.Window`)
// setting. We need to make sure that its position is
// adjusted before the tool tip is shown. For that reason,
// be careful to not use complex bindings for the position
// and text, as they may not be resolved as soon as the
// tool tip is shown (single event loop cycle).
delay
:
1
readonly
property
ColorContext
colorContext
:
ColorContext
{
id
:
theme
colorSet
:
ColorContext
.
Tooltip
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment