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

qmlls erases user code when updating implicitly defined signal handlers

XMLWordPrintable

    • 0835b5d13 (dev), cb16d776e (6.8), 0b7216a08 (6.7), ea6d706e6 (dev), 62e0c1005 (6.8), b842658d0 (6.7)

      Before clicking the lightbulb

      Warning:

      no matching signal found for handler "onWidthChanged": Implicitly defining onWidthChanged as signal handler in Connections is deprecated. Create a function instead.
      

       

      After clicking the lightbulb

      Error:

      Unexpected token `...'
      

       

      Expected outcomes
      qmlls should place the existing code – `console.log("New width:", root.width)` - inside the function block rather than erasing it

       

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

            sami.shalayel Sami Shalayel
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: