Details
Description
Dragging & dropping "Text" qml type to 2d form or Navigator of .ui.qml file which alrady contains qsTrId() causes an error with the message "Do no mix translation functions in a UI file (ui.qml). (M227)" and doesn't allow the user to add the Text.
This is becuase Text QML item comes with qsTr() by default and qsTr() and qsTrId() cannot be mixed. I suggest that Text QML item(and others which come with qsTr()) should automatically change it's translation function to qsTrId() if only qsTrId() is used in a file already.
Attachments
For Gerrit Dashboard: QDS-10548 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
500472,3 | QmlJS: Turn ErrDoNotMixTranslationFunctionsInQmlUi into a warning | qds/dev | qt-creator/qt-creator | Status: MERGED | +2 | 0 |