SDK should provide support to rearrange items in a ListView
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | ubuntu-ui-toolkit (Ubuntu) |
Medium
|
Zsombor Egri | ||
| | Vivid |
Undecided
|
Unassigned | ||
Bug Description
For the clock core app, as per design, it is required to implement ListView where the user can drag and drop to rearrange the items in the ListView. You can see the official wireframe designs at http://
It would be best if the SDK can provide support to implement this since it may also be useful to other apps.
Related branches
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-02-27
- Christian Dywan: Approve on 2015-02-27
-
Diff: 2582 lines (+1873/-91)22 files modifiedcomponents.api (+19/-0)
debian/control (+1/-0)
examples/ubuntu-ui-toolkit-gallery/NewListItems.qml (+92/-30)
modules/Ubuntu/Components/Themes/Ambiance/ListItemStyle.qml (+98/-13)
modules/Ubuntu/Components/UbuntuListView.qml (+7/-0)
modules/Ubuntu/Components/plugin/plugin.cpp (+1/-0)
modules/Ubuntu/Components/plugin/plugin.pro (+6/-2)
modules/Ubuntu/Components/plugin/privates/listitemdragarea.cpp (+313/-0)
modules/Ubuntu/Components/plugin/privates/listitemdragarea.h (+55/-0)
modules/Ubuntu/Components/plugin/privates/listitemdraghandler.cpp (+86/-0)
modules/Ubuntu/Components/plugin/privates/listitemdraghandler.h (+47/-0)
modules/Ubuntu/Components/plugin/uclistitem.cpp (+232/-18)
modules/Ubuntu/Components/plugin/uclistitem.h (+58/-1)
modules/Ubuntu/Components/plugin/uclistitem_p.h (+17/-4)
modules/Ubuntu/Components/plugin/uclistitemstyle.cpp (+15/-0)
modules/Ubuntu/Components/plugin/uclistitemstyle.h (+10/-2)
modules/Ubuntu/Components/plugin/ucviewitemsattached.cpp (+339/-11)
modules/Ubuntu/Test/UbuntuTestCase.qml (+7/-0)
tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_listitem.ListItemTestCase.qml (+0/-3)
tests/resources/listitems/ListItemDragging.qml (+174/-0)
tests/resources/listitems/ListItemTest.qml (+0/-1)
tests/unit_x11/tst_components/tst_listitem.qml (+296/-6)
| Florian Boucault (fboucault) wrote : | #1 |
| Changed in ubuntu-ui-toolkit: | |
| status: | New → Confirmed |
| importance: | Undecided → Medium |
| Daniel Holm (danielholm) wrote : | #2 |
Need this for the Music app as well.
| Andrew Hayzen (ahayzen) wrote : | #3 |
Update on music-app status.
Currently in the music app we provide drag'n'drop support but only within the current viewport (i.e. you cannot scroll the queue). However due to the way that the reordering was implemented last cycle it meant that we required a custom swipeDelete component.
I am currently investigating how to get rid of this so we just have a custom reorder component which I will then add scroll support to, assuming this bug is not resolved before I figure it out :)
| Zsombor Egri (zsombi) wrote : | #4 |
This will be implemented by the new ListItem component + a custom ListView, perhaps in the current UbuntuListView.
| Changed in ubuntu-ui-toolkit: | |
| assignee: | nobody → Zsombor Egri (zsombi) |
| tags: | added: listitems |
| Changed in ubuntu-ui-toolkit: | |
| status: | Confirmed → Triaged |
| Changed in ubuntu-ui-toolkit (Ubuntu): | |
| assignee: | nobody → Zsombor Egri (zsombi) |
| importance: | Undecided → Medium |
| status: | New → Triaged |
| no longer affects: | ubuntu-ui-toolkit |
| Changed in ubuntu-ui-toolkit (Ubuntu): | |
| status: | Triaged → Fix Released |
| Changed in ubuntu-ui-toolkit (Ubuntu Vivid): | |
| status: | New → Fix Released |


Some inspiration:
http:// blogofmu. com/2011/ 04/18/drag- and-drop- reorder- list-in- qml-qt/