ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #06040
[Bug 1562667] [NEW] ListItemDrag.direction is not defined in the API document
Public bug reported:
I just compared the two API documents:
https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ViewItems/
it uses the code:
ViewItems.onDragUpdated: {
if (event.direction == ListItemDrag.Dropped) {
// this is the last event, so drop the item
model.move(event.from, event.to, 1);
} else if (event.direction != ListItemDrag.Started) {
// do not accept the moving events, so drag.from will
// always contain the original drag index
event.accept = false;
}
}
It has the "event.direction" there, but in the API document:
https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ListItemDrag/
It does not have the "direction" property defined there. Is this a bug?
Shall it be "event.status" instead?
Thanks & best regards,
XiaoGuo
** Affects: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1562667
Title:
ListItemDrag.direction is not defined in the API document
Status in ubuntu-ui-toolkit package in Ubuntu:
New
Bug description:
I just compared the two API documents:
https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ViewItems/
it uses the code:
ViewItems.onDragUpdated: {
if (event.direction == ListItemDrag.Dropped) {
// this is the last event, so drop the item
model.move(event.from, event.to, 1);
} else if (event.direction != ListItemDrag.Started) {
// do not accept the moving events, so drag.from will
// always contain the original drag index
event.accept = false;
}
}
It has the "event.direction" there, but in the API document:
https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ListItemDrag/
It does not have the "direction" property defined there. Is this a
bug? Shall it be "event.status" instead?
Thanks & best regards,
XiaoGuo
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1562667/+subscriptions