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

QML reformatter doesn't support inline components

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated 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

      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
          }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes