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 { model: Activities.ActivityModel {
id: activityModel id: activityModel
} }
highlight: PlasmaComponents.Highlight {}
delegate: MouseArea { delegate: MouseArea {
id: delegate id: delegate
drag { drag {
target: delegate target: listView.count > 0 && !model.current? delegate : null
axis: Drag.XAxis axis: Drag.XAxis
} }
PlasmaComponents.Highlight {
visible: model.current
anchors.fill:parent
}
SequentialAnimation { SequentialAnimation {
id: positionAnim id: positionAnim
property alias to: xAnim.to property alias to: xAnim.to