~saviq/ubuntu/saucy/qtdeclarative-opensource-src/add-qtquick-delegate-range

« back to all changes in this revision

Viewing changes to tests/auto/qml/qqmlproperty/data/registeredCompositeTypeProperty.qml

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-05 14:17:19 UTC
  • Revision ID: package-import@ubuntu.com-20130205141719-qqeyml8wslpyez52
Tags: upstream-5.0.1
ImportĀ upstreamĀ versionĀ 5.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
import "componentDir"
 
3
 
 
4
Item {
 
5
    id: root
 
6
 
 
7
    property FirstComponent first: FirstComponent { }
 
8
    property FirstComponent second
 
9
    property SecondComponent third: SecondComponent { }
 
10
 
 
11
    property list<FirstComponent> fclist: [
 
12
        FirstComponent {
 
13
            a: 15
 
14
        }
 
15
    ]
 
16
    property list<SecondComponent> sclistOne: [
 
17
        SecondComponent {
 
18
            a: "G'day, World"
 
19
        },
 
20
        SecondComponent { },
 
21
        SecondComponent {
 
22
            b: true
 
23
        }
 
24
    ]
 
25
    property list<SecondComponent> sclistTwo
 
26
 
 
27
    Component.onCompleted: {
 
28
        var c1 = Qt.createComponent("./componentDir/FirstComponent.qml");
 
29
        var o1 = c1.createObject(root);
 
30
        second = o1;
 
31
    }
 
32
}