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

Support grouping of identical Behaviors

    XMLWordPrintable

Details

    Description

      Some designers and developers prefer using behaviors over states and transitions. For parallelly running behaviors you often want the easing curve and duration of the animation to be the same, so allowing people to group similar Behavior would make sense.

      So instead of having to write

      y: button.pressed ? -2 : 0
      scale: button.pressed ? 0.97 : 1.0
      Behavior on y {
          NumberAnimation {
              easing.type: Easing.InOutQuad
              duration: 200
          }
      }
      Behavior on scale {
          NumberAnimation {
              easing.type: Easing.InOutQuad
              duration: 200
          }
      }
      

      it would be nice to be able to write

      y: button.pressed ? -2 : 0
      scale: button.pressed ? 0.97 : 1.0
      Behavior on y, scale {
          NumberAnimation {
              easing.type: Easing.InOutQuad
              duration: 200
          }
      }
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jpetrell Joona Petrell
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes