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

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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes