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

Reformat QML erases quotes in object keys

    XMLWordPrintable

Details

    Description

      Reformatting a qml file removes the quotes around the keys when using the curly braces syntax to create an object.

      For example, the following code

        MyQmlComponent {
          prop: {"key_example": true}
          onActivated: {
            var t = {"key_example": true}
          }
        }
      

      will reformat to

        MyQmlComponent {
          prop: {
            key_example: true
          }
          onActivated: {
            var t = {
              key_example: true
            }
          }
        }
      

      Attachments

        Activity

          People

            mabenell Marco Benelli
            Smatcher Benjamin Hautbois
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: