summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeqt/data/createComponent.qml
blob: 412c467483a9864f87cf9b893ca8f164456fccdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Qt 4.6

QtObject {
    property bool emptyArg: false

    property string relativeUrl
    property string absoluteUrl

    property QtObject incorectArgCount1: createComponent()
    property QtObject incorectArgCount2: createComponent("main.qml", 10)

    Component.onCompleted: {
        emptyArg = (createComponent("") == null);
        var r = createComponent("createComponentData.qml");
        relativeUrl = r.url;

        var a = createComponent("http://www.example.com/test.qml");
        absoluteUrl = a.url;
    }
}