Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21504 Enable transitions for add/move/remove operations on views
  3. QTBUG-22165

Differentiate between Animation targets list that is empty vs one that hasn't been defined

    XMLWordPrintable

Details

    Description

      If you add items to the end of a list, there will be targetItems but no displacedItems (since no items will be displaced by the insertion). However this means the displacedItems animation requires

      NumberAnimation { targets: displacedItems; exclude: targetItems }
      

      instead of just

      NumberAnimation { targets: displacedItems }
      

      because the displacedItems list is empty, which means it will default to being applied to any matching object, i.e. the targetItems, and so the displacedItems animation will be applied to the targetItems.

      Attachments

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

        Activity

          People

            bealam Bea Lam (closed Nokia identity) (Inactive)
            bealam Bea Lam (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes