aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmltranslation/data/translationChange.qml
blob: ae3231935c25c59a83cd2969cc9a47c726eaeb87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import QtQuick 2.0

TranslationChangeBase {
    id: root

    ListModel {
        id: listModel
        ListElement {
            text: qsTr("translate me")
        }
    }

    baseProperty: "do not translate"
    property string text1: qsTr("translate me")
    function weDoTranslations() {
        return qsTr("translate me")
    }
    property string text2: weDoTranslations()
    property string text3
    property string fromListModel: listModel.get(0).text

    states: [
        State {
            name: "default"
            when: 1 == 1
            PropertyChanges {
                target: root
                text3: qsTr("translate me")
            }
        }
    ]
}