Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-9733

Reformatting QML files deletes type annotations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • QDS 4.3.2
    • QDS 4.0.1
    • Integrated Text Editor
    • None
    • Linux/X11, Windows
    • 4
    • QDS Berlin - 2023 Week 27/28, QDS Berlin - 2023 Week 29/30, QDS Berlin - 2023 Week 33/34, QDS Berlin - 2023 Week 35/36, QDS Berlin - 2023 Week 41/42, QDS Berlin - 2023 Week 43/44, QDS Berlin - 2023 Week 45/46

      Type annotations are deleted when QML files are reformatted using Tools menu → QML/JS → Reformat file.

      Steps for reproduction:

      To any QML file, add an arbitrary function whose arguments have type annotations.

      For example:

      function foo(i: int) {
          console.log( i )
      }  

      Reformat the file using the above command (show the Tools menu first if it is hidden in QDS 4.x) 

      : int will be deleted from the function.

      The same issue occurs in Qt Creator 10.

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

            thohartm Thomas Hartmann
            indi Indivara Weerasuriya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes