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

Incorrect Semantic Highlighting for QML Property Chains

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8
    • 6.8
    • QML: Tooling
    • None
    • d8a56333b (master), 9eea61711 (dev), 5ce826b34 (dev), c8521e32e (dev), e0975c912 (6.10), f5ab09cb8 (6.10), 004e94ab5 (6.10), 45247917c (6.9), 4c4c62c7c (6.9), 012a3dafb (6.9), 3e05c0eb1 (tqtc/lts-6.8), 5f20b6c84 (tqtc/lts-6.8), f3ad63428 (tqtc/lts-6.8)

      The semantic highlighting system for QML incorrectly distinguishes between qualified property lookups based on scope, when it should only be making these distinctions for unqualified lookups.

      In property chains (e.g., foo.bar.baz), only the first part (foo) should receive special highlighting based on its source (ID, local variable, root object, context property), while all subsequent parts (bar, baz) should be highlighted uniformly as "Field" regardless of their source.

      The fix should:

      Apply special highlighting only to the first part of property chains based on scope analysis
      Apply consistent "Field" highlighting to all qualified property accesses
      Consider similar treatment for function calls in property chains (e.g., foo.bar().baz)

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

            semih.yavuz Semih Yavuz
            semih.yavuz Semih Yavuz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: