ListItem doesn't emit onClicked after user has swiped to leading item and back
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Zsombor Egri |
Bug Description
Steps to reproduce:
1) Run the following QML from the console:
import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
Page {
ListView {
model: 5
}
}
}
}
}
}
}
2) Click on item 2, note that "Clicked 2" is printed to the console
3) Swipe right on item 3 to show the delete action
4) Swipe left to hide the delete action
5) Click on item 3
Expected result:
"Clicked 3" should be printed on the console
Actual result:
"Clicked 3" isn't printed due to onClicked never being emitted.
Note that if instead of swiping left to hide the delete action you tap on the item to hide it the onClicked signal will work as expected.
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Cris Dywan: Approve
- Zoltan Balogh: Approve
-
Diff: 833 lines (+283/-158)12 files modifiedsrc/Ubuntu/Components/Themes/Ambiance/1.3/ListItemStyle.qml (+1/-1)
src/Ubuntu/Components/plugin/privates/listitemdragarea.cpp (+3/-2)
src/Ubuntu/Components/plugin/uclistitem.cpp (+88/-49)
src/Ubuntu/Components/plugin/uclistitem.h (+0/-1)
src/Ubuntu/Components/plugin/uclistitem_p.h (+3/-7)
src/Ubuntu/Components/plugin/ucviewitemsattached.cpp (+0/-64)
tests/resources/listitems/ListItemTest.qml (+7/-2)
tests/unit_x11/tst_components/ListItemTestCase.qml (+4/-0)
tests/unit_x11/tst_components/ListItemTestCase13.qml (+14/-0)
tests/unit_x11/tst_components/tst_listitem.qml (+14/-14)
tests/unit_x11/tst_components/tst_listitem13.qml (+13/-14)
tests/unit_x11/tst_components/tst_listitem_extras.qml (+136/-4)
description: | updated |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Zsombor Egri (zsombi) |
Changed in canonical-devices-system-image: | |
status: | New → In Progress |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
this is affecting the new browser downloads page and other apps