Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
6.5.5, 6.6.3, 6.7.0 Beta2, 6.8.0 FF, 6.8
-
6.3.1
-
1b438b039 (dev), 341e40077 (6.7), 8a0ac5340 (6.6), 18b7910fd (tqtc/lts-6.5)
Description
As a user of the qmlformat utility I want the tool to collapse empty objects so that the code stays readable and clean.
Initial:
readonly property MpvqcManager mpvqcManager: MpvqcManager {} readonly property MpvqcSettings mpvqcSettings: MpvqcSettings {}
Expected (after qmlformat):
readonly property MpvqcManager mpvqcManager: MpvqcManager {} readonly property MpvqcSettings mpvqcSettings: MpvqcSettings {}
Actual:
readonly property MpvqcManager mpvqcManager: MpvqcManager { } readonly property MpvqcSettings mpvqcSettings: MpvqcSettings { }
Attachments
For Gerrit Dashboard: QTBUG-108660 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
502964,8 | qmlformat: Don't add unnecessary newlines in empty objects | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
532782,2 | qmlformat: Don't add unnecessary newlines in empty objects | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
532807,4 | qmlformat: Don't add unnecessary newlines in empty objects | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
534857,6 | qmlformat: Don't add unnecessary newlines in empty objects | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |