Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84909 Use QProperty in QML/Quick classes
  3. QTBUG-85030

QNotifiedProperty: Allow callback to obtain old value

    XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Fix Version/s: 6.0.0
    • Component/s: None
    • Labels:

      Description

      Having to store the old value manually in the class which contains QNotifiedProperty is both cumbersome and wastes memory. QNotifiedProperty should support calling a function which takes one argument for the old value.

      Whether that argument should be T* or optional<T> needs to be investigated.

        Attachments

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

          Activity

            People

            Assignee:
            fabiankosmale Fabian Kosmale
            Reporter:
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes