]> cloud.milkyroute.net Git - dolphin.git/commit
Prevent that removing items can cause icons to overlap
authorFrank Reininghaus <frank78ac@googlemail.com>
Thu, 25 Jul 2013 20:15:19 +0000 (22:15 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Thu, 25 Jul 2013 20:15:19 +0000 (22:15 +0200)
commit08c2f7f5fbc55939626842e5764df856c8972d66
treed8033a01271dc7fb4bc6cf7a8b340e869fd805d1
parentf89b412a8aeb11398a02b3dbe57105b8868e1fb4
Prevent that removing items can cause icons to overlap

When items are removed, new items may become visible because of that.
This includes

(a) Items *behind* the removed range. KItemListView may try to create
    their widgets at their "imaginary" old positions and move them to
    the new position with an animation.

(b) Items *before* the removed range, if the deletion causes the view
    to scroll up. In that case, the "imaginary" old position and the new
    position was equal, but KItemListView still tried to determine the
    "old" position by adding the number of removed items to the index.
    The result was that the widgets were created at completely wrong
    positions, and no animation was started to fix this.

Thanks to Emmanuel for helping to find the cause of this bug!

BUG: 302373
FIXED-IN: 4.11.0
REVIEW: 111630
src/kitemviews/kitemlistview.cpp