]> cloud.milkyroute.net Git - dolphin.git/commit
Fix sorting-issues when value of a sort-role has been changed
authorPeter Penz <peter.penz19@gmail.com>
Sun, 30 Oct 2011 19:57:50 +0000 (20:57 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 30 Oct 2011 20:01:43 +0000 (21:01 +0100)
commitc872dcbda9b0fbcd945a7917ae9e4b3cb61f347c
tree4c094e8f287b093038870e8ec60733799a823402
parenta803819afddfd16f63e82f66ac46d5b54f508bd4
Fix sorting-issues when value of a sort-role has been changed

If the value of a sort-role has been changed, emitting the signal
itemsChanged() is not sufficient as from the KItemModelBase point
of view an item has been moved or deleted/reinserted.

Corresponding to the unit-test KFileItemModel::setData() respects
this case correctly now, however there are some minor visual
animation issues left that (hopefully) should not be tricky to
solve.
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/tests/kfileitemmodeltest.cpp