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

QGraphicsItem::setLayout assumes that the layout is not a QGraphicsItem

XMLWordPrintable

      QGraphicsItem::setLayout ends up reparenting (setParentItem()) all the items in the layout.
      Instead it should first call layout->graphicsItem(). If that returns true then it should just reparent that, leaving the items inside the layout alone.

      This allows for layouts to be hidden, and for layouts to do more fancy things (for example, to hide some of its items). This is essential for animated layouts in libdui.

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

            Unassigned Unassigned
            johnflux John Tapsell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes