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

Correctly set up grouped properties in QQmlJSImportVisitor

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P1: Critical
    • 6.4
    • 6.3
    • QML: Compiler, QML: Tooling
    • 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

              fabiankosmale Fabian Kosmale
              fabiankosmale Fabian Kosmale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes