Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 10.0.0
-
None
Description
Context: there exists a very useful feature in javascript called computed property names, this appears to be supported in Qt QML.
The following example won't run, but it does demonstrate the problem
```QML
// Example usage
Item {
property var exampleMapping: (
)
}
// after auto formatting:
Item {
property var exampleMapping: (
)
}
```
The auto-formatter is incorrectly changing the property to a string. Equally if you just use a local variable the formatter will replace the computed property with a string
Attachments
Issue Links
- depends on
-
QTCREATORBUG-26602 Integration of "qmlformat" in QtCreator
- Open