Commit 355c1a33 authored by Ismael Asensio's avatar Ismael Asensio
Browse files

switchers/icons: Fix clicking on items

The reference to the list view using the `ListView`attached
property was not working within the `TapHandler` in the
delegates, and thus not acting on tap/click.

Use the `id` to reference it directly.

Amends e6bb39b6
parent 520d9889
Pipeline #208836 passed with stage
in 2 minutes and 37 seconds
......@@ -31,13 +31,13 @@ ListView {
TapHandler {
onSingleTapped: {
if (index === ListView.view.currentIndex) {
ListView.view.model.activate(index);
if (index === iconsListView.currentIndex) {
iconsListView.model.activate(index);
return;
}
ListView.view.currentIndex = index;
iconsListView.currentIndex = index;
}
onDoubleTapped: ListView.view.model.activate(index)
onDoubleTapped: iconsListView.model.activate(index)
}
}
......
Supports Markdown
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