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

Reformat QML erases quotes in object keys

XMLWordPrintable

      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
            }
          }
        }
      

        For Gerrit Dashboard: QTCREATORBUG-17455
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes