Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / scope.5.qml
1 import QtQuick 2.0
2
3 Item {
4     property bool test1: false;
5     property bool test2: false;
6
7     property int a: 10
8
9     Item {
10         id: nested
11         property int a: 11
12
13         function mynestedfunction() {
14             return a;
15         }
16     }
17
18     function myouterfunction() {
19         return a;
20     }
21
22     Component.onCompleted: {
23         test1 = (myouterfunction() == 10);
24         test2 = (nested.mynestedfunction() == 11);
25     }
26 }
27