Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29061

Reformatting QML files deletes type annotations

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • ffcbbecf2 (12.0)
    • QDS Berlin - 2023 Week 23/24

    Description

      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.

      : int will be deleted from the function.

      The same issue occurs in Qt Design Studio 4.

      Attachments

        Issue Links

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

          Activity

            People

              semih.yavuz Semih Yavuz
              indi Indivara Weerasuriya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes