Debian Codegraph @

tests/auto/qml/qqmltranslation/data/translationChange.qml

raw
1 import QtQuick 2.0
2
3 TranslationChangeBase {
4 id: root
5
6 ListModel {
7 id: listModel
8 ListElement {
9 text: qsTr("translate me")
10 }
11 }
12
13 baseProperty: "do not translate"
14 property string text1: qsTr("translate me")
15 function weDoTranslations() {
16 return qsTr("translate me")
17 }
18 property string text2: weDoTranslations()
19 property string text3
20 property string fromListModel: listModel.get(0).text
21
22 states: [
23 State {
24 name: "default"
25 when: 1 == 1
26 PropertyChanges {
27 target: root
28 text3: qsTr("translate me")
29 }
30 }
31 ]
32 }