aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/stringLength.qml
blob: d09f032d653970bbed317fdd51c0e3156a812d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pragma Strict
import QtQml

QtObject {
    objectName: "astringb"
    property int stringLength: objectName.length
    property string a: {
        const value = objectName;
        if (value && value.length > 0) {
            return value;
        }
        return "no"
    }
}