touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #102975
[Bug 1496468] Re: ListItem doesn't emit onClicked after user has swiped to leading item and back
this is affecting the new browser downloads page and other apps
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided => High
** Also affects: canonical-devices-system-image
Importance: Undecided
Status: New
** Changed in: canonical-devices-system-image
Milestone: None => ww40-2015
** Changed in: canonical-devices-system-image
Assignee: (unassigned) => Zoltan Balogh (bzoltan)
** Changed in: canonical-devices-system-image
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1496468
Title:
ListItem doesn't emit onClicked after user has swiped to leading item
and back
Status in Canonical System Image:
New
Status in ubuntu-ui-toolkit package in Ubuntu:
New
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 {
anchors.fill: parent
model: 5
delegate: ListItem {
onClicked: {
console.log("Clicked: " + index)
}
Label {
anchors.centerIn: parent
text: index
}
leadingActions: ListItemActions {
actions: [
Action {
objectName: "leadingAction.delete"
iconName: "delete"
}
]
}
}
}
}
}
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1496468/+subscriptions
References