Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.2.0
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 } } }