]> cloud.milkyroute.net Git - dolphin.git/commit
Remember the row- and column-information for visible items
authorPeter Penz <peter.penz19@gmail.com>
Fri, 17 Feb 2012 15:00:52 +0000 (16:00 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Fri, 17 Feb 2012 15:02:14 +0000 (16:02 +0100)
commit51bd6cfdfad4d1be706f6dc125762889c19fcc5a
tree4b8d555bb0513a7a385a8e10ccba8622141bdee9
parenta5becac42cded392b957e71fcd433082c604a41f
Remember the row- and column-information for visible items

Up to now KItemListView has not been aware to which column or row
an item belongs to. This has been handled internally in
KItemListViewLayouter. But for deciding whether a move-animation
might result in overlapping items it is mandatory to be aware about
the column/row. The current approach to guess a column/row change
by comparing the source- and target-rectangle works very well but
breaks on some corner-cases when e.g. zooming.

Now the layouter allows to access the information. This assures
that in the vertical alignment no move-animation is done between
rows and the in the horizontal alignment no move-animation is
done between the columns.
src/kitemviews/kitemlistview.cpp
src/kitemviews/kitemlistview.h
src/kitemviews/kitemlistviewlayouter.cpp
src/kitemviews/kitemlistviewlayouter_p.h