Details
Description
When we use qmlformat the comments we are using to annotate our translations are removed in some cases:
onDeleteConfirmed: { setLockedAndHidden(); push(deleteProgressView, { //: LABEL ANDROID IOS "text": qsTr("Resetting Smart-eID"), "progressBarVisible": true, //: LABEL ANDROID IOS "progressText": qsTr("Resetting Smart-eID") }); SmartModel.deleteSmart(); }
sectionsModel: [{ //: LABEL DESKTOP "categoryName": qsTr("All provider"), "category": "all" }, { //: LABEL DESKTOP "categoryName": qsTr("Citizen services"), "category": "citizen" }, { //: LABEL DESKTOP "categoryName": qsTr("Financials"), "category": "finance" }, { //: LABEL DESKTOP "categoryName": qsTr("Insurances"), "category": "insurance" }, { //: LABEL DESKTOP "categoryName": qsTr("Other services"), "category": "other" }]
Simple Example:
Item { property var test: [{ // Testing "foo": "bar" }] onTestChanged: { fooBar(test, { // Testing "foo": "bar" }); } }
Attachments
For Gerrit Dashboard: QTBUG-109074 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
454994,3 | qmlformat: fix omitting some comments while reformatting | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
455690,2 | qmlformat: fix omitting some comments while reformatting | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
455691,3 | qmlformat: fix omitting some comments while reformatting | 6.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |