← Back to team overview

touch-packages team mailing list archive

[Bug 1432930] Re: move out of range printed when dragging a list view item

 

zsombi explained that the onDragUpdated in the attached qml was wrong.
Changing it to:
if (event.status == ListItemDrag.Moving) {
   model.move(event.from, event.to, 1)
}

makes it work without errors. Marking the bug as invalid.

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: New => Invalid

-- 
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/1432930

Title:
  move out of range printed when dragging a list view item

Status in ubuntu-ui-toolkit package in Ubuntu:
  Invalid

Bug description:
  To reproduce:
  Open the attached qml file with qmlscene.
  Long click on the first item of the list. The drag handlers will appear.
  Click the drag handler.

  This will be printed on the console:
  file:///home/elopio/workspace/canonical/ubuntu-ui-toolkit/experimental/autopilot-listview/tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_listitem.ListViewDraggingTestCase.qml:38:20: QML ListModel: move: out of range

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1432930/+subscriptions


References