Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Hide monitor zone if undefined instead of displaying -1

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