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

allow the same right hand sides for property declarations and property bindings

    XMLWordPrintable

Details

    • f31d94f2d4438106558dede0de1a423cade960a9

    Description

      Currently a property declaration only allows:

      • Expression
      • UiQualifiedId UiObjectInitializer

      while property bindings allow

      • IfStatement
      • ExpressionStatement
      • EmptyStatement
      • Block
      • [ UiArrayMemberList ]
      • UiQualifiedId UiObjectInitializer

      I argue that this is an unnecessary difference. The declaration should allow:

      • IfStatement
      • ExpressionStatement
      • Block
      • UiQualifiedId UiObjectInitializer

      EmptyStatement is probably unneeded in a property declaration and the array one is only needed for property declarations of list type.

      Attachments

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

        Activity

          People

            raggi Roberto Raggi
            ckamm Christian Kamm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes