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

Correctly set up grouped properties in QQmlJSImportVisitor

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.3
    • Fix Version/s: 6.4
    • Component/s: QML: Compiler, QML: Tooling
    • Labels:
      None

      Description

      To properly analyse code in the QML code model, we need to have proper support for grouped properties (which are required for important properties like anchors).

       

      Currently, we don't set them up correctly in the QQmlJSScope tree.

       

      Currently, we e.g. end up with an invalid binding on a nonexisting fill property when writing

      Item {anchors.fill: parent}
      

      instead of a binding to the Item's anchor property, and a binding to anchor's fill property.

      Related: the TODO in 

      bool QQmlJSImportVisitor::visit(UiScriptBinding *scriptBinding)

       

      There are probably  other broken partsj

        Attachments

        1. A.qml
          0.1 kB
        2. B.qml
          0.0 kB

          Issue Links

          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:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes