~loic.molinari/+junk/qtdeclarative-shadereffectsource-changes

« back to all changes in this revision

Viewing changes to tests/auto/qml/qqmlecmascript/data/aliasBindingsOverrideTarget.qml

  • Committer: Loïc Molinari
  • Date: 2012-04-21 17:59:51 UTC
  • Revision ID: loic.molinari@canonical.com-20120421175951-bqx68caaf5zrp76l
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
 
 
3
Item {
 
4
    id: me
 
5
    property bool test: false
 
6
 
 
7
    property int value: 9
 
8
 
 
9
    AliasBindingsOverrideTargetType {
 
10
        id: aliasType
 
11
        aliasProperty: me.value
 
12
    }
 
13
 
 
14
    Component.onCompleted: {
 
15
        if (aliasType.aliasProperty != 9) return;
 
16
 
 
17
        me.value = 11;
 
18
        if (aliasType.aliasProperty != 11) return;
 
19
 
 
20
        aliasType.data = 8;
 
21
        if (aliasType.aliasProperty != 11) return;
 
22
 
 
23
        me.value = 4;
 
24
        if (aliasType.aliasProperty != 4) return;
 
25
 
 
26
        test = true;
 
27
    }
 
28
}