use ListView.isCurrentItem instead of our own binding
commit89b8ca4deb985a1eaac292e15cd504c5f586acb6
authorMichael Zanetti <michael.zanetti@canonical.com>
dateWed 13 Nov 2013, 19:50 (13 years ago)
parent2048ac1
Dash/DashPreview.qml+1−1
@@ -25,7 +25,7 @@ Item {
2525 property alias showProcessingAction: waitingForActionMouseArea.enabled
2626
2727 property real previewWidthRatio: 0.5
28− property bool isCurrent: false
28+ property bool isCurrent: ListView.isCurrentItem
2929
3030 property Component previewImages
3131 property Component header
Dash/GenericScopeView.qml−6
@@ -485,12 +485,6 @@ ScopeView {
485485 }
486486 }
487487
488− Binding {
489− target: item
490− property: "isCurrent"
491− value: previewListView.currentIndex == index
492− }
493−
494488 function closePreviewSpinner() {
495489 if(item) {
496490 item.showProcessingAction = false;