aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlapplicationengine/loadFromModuleTranslationsQmlType/Main.qml
blob: 9f8e1984e994479168ee2841004b6a0b6a8e1e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import QtQml

QtObject {
    property string expected: "placeholder"
    property string actual: qsTr("Hello")

    function f() {
        if (expected === actual)
            Qt.exit(0)
        else
            Qt.exit(actual.charCodeAt(0))
    }
}