on xenial help sign in
revert rev 505 as ListView.isCurrentItem doesn't work indeed in this case
commit65e27d3d01132389707f01cda15616e8eea8f58b authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 15 Nov 2013, 17:17 (13 years ago) parentb7306c7
2 files changed+7−1
Dash/DashPreview.qml+1−1 Dash/GenericScopeView.qml+6
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: ListView.isCurrentItem
28+ property bool isCurrent: false
2929
3030 property Component previewImages
3131 property Component header
Dash/GenericScopeView.qml+6
@@ -485,6 +485,12 @@ ScopeView {
485485 }
486486 }
487487
488+ Binding {
489+ target: item
490+ property: "isCurrent"
491+ value: previewListView.currentIndex == index
492+ }
493+
488494 function closePreviewSpinner() {
489495 if(item) {
490496 item.showProcessingAction = false;