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

QML indentation issue with single-line components in an array

    XMLWordPrintable

Details

    • 34f37fb5e36c60926ba1bda8c93181c5d67654f7

    Description

      The following snippet has been indented by Qt Creator (first line indentation messed up by JIRA it seems):

          states: [
              State { name: "AutoScrollingUp" },
                    State { name: "AutoScrollingDown" }
          ]
      

      The second State component is indented by 6 spaces (and each subsequent one would be indented by another 6 spaces). Expected behavior is that they will appear aligned to each other.

      The same happens when you format an array of Transitions, but then the indent is bigger, so it seems to depend on the component name.

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            lindeije Thorbjørn Lindeijer (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes