Commit 484310d8 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Hide monitor zone if undefined instead of displaying -1

parent 50f0b71e
...@@ -72,7 +72,7 @@ Rectangle { ...@@ -72,7 +72,7 @@ Rectangle {
} }
// Zone duration indicator // Zone duration indicator
Rectangle { Rectangle {
visible: zoneToolTipTimer.running || rulerMouseArea.containsMouse || trimInMouseArea.containsMouse || trimInMouseArea.pressed || trimOutMouseArea.containsMouse || trimOutMouseArea.pressed visible: inZoneMarker.visible || zoneToolTipTimer.running
width: inLabel.contentWidth + 4 width: inLabel.contentWidth + 4
height: inLabel.contentHeight height: inLabel.contentHeight
property int centerPos: zone.x + zone.width / 2 - inLabel.contentWidth / 2 property int centerPos: zone.x + zone.width / 2 - inLabel.contentWidth / 2
...@@ -100,12 +100,13 @@ Rectangle { ...@@ -100,12 +100,13 @@ Rectangle {
} }
// monitor zone // monitor zone
Rectangle { Rectangle {
id: inZoneMarker
x: controller.zoneIn * root.timeScale x: controller.zoneIn * root.timeScale
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.top: parent.top anchors.top: parent.top
width: 1 width: 1
color: activePalette.highlight color: activePalette.highlight
visible: rulerMouseArea.containsMouse || trimInMouseArea.containsMouse || trimInMouseArea.pressed || trimOutMouseArea.containsMouse visible: controller.zoneOut > controller.zoneIn && (rulerMouseArea.containsMouse || trimOutMouseArea.containsMouse || trimOutMouseArea.pressed || trimInMouseArea.containsMouse)
} }
Rectangle { Rectangle {
x: controller.zoneOut * root.timeScale x: controller.zoneOut * root.timeScale
...@@ -113,7 +114,7 @@ Rectangle { ...@@ -113,7 +114,7 @@ Rectangle {
anchors.top: parent.top anchors.top: parent.top
width: 1 width: 1
color: activePalette.highlight color: activePalette.highlight
visible: rulerMouseArea.containsMouse || trimOutMouseArea.containsMouse || trimOutMouseArea.pressed || trimInMouseArea.containsMouse visible: inZoneMarker.visible
} }
Rectangle { Rectangle {
id: zone id: zone
......
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