ListItemDrag.direction is not defined in the API document

Bug #1562667 reported by XiaoGuo, Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
New
Undecided
Unassigned

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 post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.