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

QML reformatter doesn't support inline components

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 6.0.2
    • Qt Creator 4.14.0
    • Quick / QML Support
    • None
    • Qt Creator 4.14.0 (commercial)
      Tested on Windows, Linux & MacOS
    • All

    Description

      The QML reformatter (Tools->QML/JS->Reformat File) erases inline component definitions, breaking the code.  Reformatting the following:

          component InlineComponent: Item {
              id: anEmptyItem
          }
      

      becomes:

          Item {
              id: anEmptyItem
          }
      

      Attachments

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

        Activity

          People

            fawzi Fawzi Mohamed
            tec Terence Conklin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes