aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/assignSequenceTypes.7.qml
blob: 96c0684939f85aea4dcb980a83a42506dbaf730e (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
33
34
35
36
37
38
39
40
41
42
import QtQuick 2.0
import Qt.test 1.0

Item {
    // single url assignment to url list property
    MySequenceConversionObject {
        id: msco1
        objectName: "msco1"
    }

    // single url binding to url list property
    MySequenceConversionObject {
        id: msco2
        objectName: "msco2"
        urlListProperty: "example.html"
    }

    // multiple url assignment to url list property
    MySequenceConversionObject {
        id: msco3
        objectName: "msco3"
    }

    // multiple url binding to url list property
    MySequenceConversionObject {
        id: msco4
        objectName: "msco4"
        urlListProperty: [ "example.html", "example2.html" ]
    }

    // multiple url binding to url list property - already resolved
    MySequenceConversionObject {
        id: msco5
        objectName: "msco5"
        urlListProperty: [ Qt.resolvedUrl("example.html"), Qt.resolvedUrl("example2.html") ]
    }

    Component.onCompleted: {
        msco1.urlListProperty = "example.html";
        msco3.urlListProperty = [ "example.html", "example2.html" ];
    }
}