ListViewDrag should be ListItemDrag in the API doc

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

Bug Description

https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ViewItems/

  ViewItems.onDragUpdated: {
        if (event.status == ListViewDrag.Started) {
            if (event.from < 5) {
                // deny dragging on the first 5 element
                event.accept = false;

In the above code, the correct should be:

            ViewItems.onDragUpdated: {
                if (event.status == ListItemDrag.Started) {
                    if (event.from < 5) {
                        // deny dragging on the first 5 element
                        event.accept = false;
                    } else if (event.from >= 5 && event.from <= 10 &&

Best regards,
XiaoGuo

Andrea Bernabei (faenil)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
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.