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

QEasingCurve::operator== returning wrong value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.7.0
    • None
    • 87c1a9b5a2d9ba03bcc2ae9a74a9c3a7ff8fe09a

    Description

      The following code fails:

      QEasingCurve curve3;
      QEasingCurve curve4;
      curve4.setAmplitude(.3);
      QVERIFY(curve3 != curve4);
      

      I've attached a possible patch. This is causing trouble in QML because when setting an easing curve on an animation, we first check if it is equal to the existing easing curve, and return immediately if it is. This causes code like the following to skip setting the amplitude.

      PropertyAnimation {
          easing.type: Easing.InOutBounce
          easing.amplitude: 5
      }
      

      Attachments

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

        Activity

          People

            frederik Frederik Gladhorn
            brasser Michael Brasser (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