-
Bug
-
Resolution: Done
-
P2: Important
-
4.5.0
-
None
-
a95883e90fadeddd2f49da6765fb2d79f7ce77bd
If a QListView has LeftToRight flow with drag and drop enabled and dragDropMode set to InternalMove draging the items is expected to show the drop indicator drawn vertically.
Instead, the drop indicator is drawn horizontally as if the flow were TopToBottom.
The QAbstractItemViewPrivate::position implementation in src/gui/itemviews/qabstractitemview.cpp does not support LeftToRight mode.
It only handles the 'y()' position; it should handle 'x()' or 'y()' depending on the flow of the item view.
The QAbstractItemView::dragMoveEvent doe not implement LeftToRight either.
When it sets dropIndicatorRect, it assumes a vertical layout rather than a horizontal layout. It should not only handle TopToBottom flow, but also LeftToRight flow.