Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
b8f07978
Commit
b8f07978
authored
Mar 18, 2020
by
Jean-Baptiste Mardelle
Browse files
Make monitor zone tooltip more visible
parent
4ce7f1a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/view/MonitorRuler.qml
View file @
b8f07978
...
...
@@ -58,7 +58,7 @@ Rectangle {
x
:
controller
.
zoneIn
*
root
.
timeScale
width
:
(
controller
.
zoneOut
-
controller
.
zoneIn
)
*
root
.
timeScale
anchors.bottom
:
parent
.
bottom
height
:
ruler
.
height
/
1.9
height
:
ruler
.
height
/
2
opacity
:
0.8
onXChanged
:
zoneToolTipTimer
.
start
()
onWidthChanged
:
zoneToolTipTimer
.
start
()
...
...
@@ -102,18 +102,19 @@ Rectangle {
Rectangle
{
visible
:
inZoneMarker
.
visible
||
zoneToolTipTimer
.
running
width
:
inLabel
.
contentWidth
+
4
height
:
inLabel
.
contentHeight
height
:
inLabel
.
contentHeight
+
2
property
int
centerPos
:
zone
.
x
+
zone
.
width
/
2
-
inLabel
.
contentWidth
/
2
x
:
centerPos
<
0
?
0
:
centerPos
>
ruler
.
width
-
inLabel
.
contentWidth
?
ruler
.
width
-
inLabel
.
contentWidth
:
centerPos
color
:
activePalette
.
highlight
color
:
activePalette
.
alternateBase
anchors.bottom
:
ruler
.
top
Label
{
id
:
inLabel
anchors.fill
:
parent
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignBottom
text
:
trimInMouseArea
.
containsMouse
||
trimInMouseArea
.
pressed
?
controller
.
toTimecode
(
controller
.
zoneIn
)
+
'
>
'
+
controller
.
toTimecode
(
controller
.
zoneOut
-
controller
.
zoneIn
)
:
trimOutMouseArea
.
containsMouse
||
trimOutMouseArea
.
pressed
?
controller
.
toTimecode
(
controller
.
zoneOut
-
controller
.
zoneIn
)
+
'
<
'
+
controller
.
toTimecode
(
controller
.
zoneOut
)
:
controller
.
toTimecode
(
controller
.
zoneOut
-
controller
.
zoneIn
)
font
.pixelSize
:
root
.
baseUni
t
color
:
activePalette
.
highlightedT
ext
font
:
fixedFon
t
color
:
activePalette
.
t
ext
}
}
// monitor zone
...
...
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