correct highlighted activity

This commit is contained in:
Marco Martin 2016-10-05 15:39:37 +02:00
parent b413f8b664
commit 4eec991a3c

View file

@ -31,13 +31,16 @@ ColumnLayout {
model: Activities.ActivityModel {
id: activityModel
}
highlight: PlasmaComponents.Highlight {}
delegate: MouseArea {
id: delegate
drag {
target: delegate
target: listView.count > 0 && !model.current? delegate : null
axis: Drag.XAxis
}
PlasmaComponents.Highlight {
visible: model.current
anchors.fill:parent
}
SequentialAnimation {
id: positionAnim
property alias to: xAnim.to