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

Array elements removed when using Reformat File

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.9.0-beta1
    • Fix Version/s: None
    • Component/s: Quick / QML Support
    • Labels:
      None
    • Environment:
      Qt Creator 4.9.0-beta1 (4.8.82)
      Based on Qt 5.12.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
      Built on Feb 20 2019 01:16:36
      From revision c134850255
    • Platform/s:
      Windows

      Description

          property var m: [
              "5","10","15","20","30","60"
          ]
      

      becomes

          property var m: [, , , , , ]
      

      when using Tools => QML/JS => Reformat File.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              tjenssen Tim Jenssen
              Reporter:
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes