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

QML: Add FINAL, CONSTANT to Q_PROPERTY declarations

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        For Gerrit Dashboard: QTBUG-55912
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes