Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109074

qmlformat removes (extra)comments

    XMLWordPrintable

Details

    • 444d4f1f3 (dev), e9227b20e (6.5), a11eeea7b (6.4)

    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

        Activity

          People

            semih.yavuz Semih Yavuz
            larss Lars Schmertmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes