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

Get rid of unused selected track state

parent ee8946b6
Pipeline #1596 passed with stage
in 17 minutes and 2 seconds
......@@ -32,7 +32,6 @@ Rectangle {
property bool isLocked
property bool isAudio
property bool showAudioRecord
property bool selected: false
property bool current: false
property int myTrackHeight
property int trackId : -42
......@@ -52,20 +51,12 @@ Rectangle {
flashLock.restart();
}
color: selected ? selectedTrackColor : getTrackColor(isAudio, true)
color: getTrackColor(isAudio, true)
//border.color: selected? 'red' : 'transparent'
//border.width: selected? 1 : 0
clip: true
state: 'normal'
states: [
State {
name: 'selected'
when: trackHeadRoot.selected
PropertyChanges {
target: trackHeadRoot
//color: isAudio? root.shotcutBlue : 'darkseagreen'
}
},
State {
name: 'current'
when: trackHeadRoot.current
......@@ -75,7 +66,7 @@ Rectangle {
}
},
State {
when: !trackHeadRoot.selected && !trackHeadRoot.current
when: !trackHeadRoot.current
name: 'normal'
PropertyChanges {
target: trackHeadRoot
......@@ -197,7 +188,7 @@ Rectangle {
when: !trackHeadRoot.isLocked && !trackHeadRoot.isDisabled
PropertyChanges {
target: trackLed
color: trackHeadRoot.selected ? 'green' : 'grey'
color: 'grey'
}
}
]
......
......@@ -624,7 +624,6 @@ Rectangle {
isStackEnabled: model.isStackEnabled
width: headerWidth
height: model.trackHeight
selected: false
current: item === timeline.activeTrack
trackId: item
onIsLockedChanged: tracksRepeater.itemAt(index).isLocked = isLocked
......@@ -1347,10 +1346,6 @@ Rectangle {
if (dragProxy.draggedItem > -1 && !timeline.exists(dragProxy.draggedItem)) {
endDrag()
}
var selectedTrack = timeline.selectedTrack()
for (var i = 0; i < trackHeaderRepeater.count; i++) {
trackHeaderRepeater.itemAt(i).selected = (i === selectedTrack)
}
}
}
......
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