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

QML: Add FINAL, CONSTANT to Q_PROPERTY declarations

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.9
    • None
    • WebEngine
    • None
    • 3bb1294bc59320e5699840e14490197d6a77b7aa

      Add 'FINAL' to all Q_PROPERTY declarations in Qt Quick API, and add CONSTANT where it makes sense. This should enable the Qml Engine to speed up stuff.

      FINAL

      The presence of the FINAL attribute indicates that the property will not be overridden by a derived class.
      

      This should be the case for all our Qt Quick API.

      CONSTANT

      The presence of the CONSTANT attibute indicates that the property value is constant. For a given object instance, the READ method of a constant property must return the same value every time it is called.
      

      This should also be the case for all Q_PROPERTY that miss a WRITE and/or NOTIFY signal

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

            qt_webengine_team Qt WebEngine Team
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes