Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3730

QListView does not draw drop indicators with LeftToRight flow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.6.0
    • 4.5.0
    • Widgets: Itemviews
    • 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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            dedietri Gabriel de Dietrich (drgvond)
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes