Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
QDS 3.7
-
None
-
QDS Berlin - 2022 Week 45/46
Description
In qt design studio I have a snippet of code
Connections {
target: sceneButton
onPressed: console.log(model.sceneName + " Selected")
}
when I save the .ui.qml file it automatically changes the code to
Connections {
target: sceneButton
onPressed: console.log(
model.sceneName + " Selected")
}
This presents a serious problem for me. I want to upload the code generated by design studio to the company code base, which requires passing code review, and these sorts of changes are in violation of my company's style guides. In order to get through code review, I have to open up the files generated by design studio in another text editor and manually make corrections, destroying any potential productivity boost from DS.
There are many other examples of these seemingly baffling edits, for instance, Design Studio likes putting two spaces before all of the doxygen comments and copyright headers that my company uses, which again require fixing in a second editor in order to get past code review.
I posted this grievance in the QT forum, and was requested to log it as a bug:
https://forum.qt.io/topic/138632/automatic-new-lines-in-qt-design-studio/5
Attachments
For Gerrit Dashboard: QDS-8170 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
443723,2 | QmlDesigner: Fix ProgressParSpecifics | qds/dev | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
443731,2 | QmlDesigner: Add option for Always auto-format ui.qml files in Design mode | qds/dev | qt-creator/qt-creator | Status: MERGED | +2 | 0 |