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 } } }
Attachments
For Gerrit Dashboard: QTCREATORBUG-17455 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
212001,2 | Qml/js reformatter: use quotes in objects literals | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |