11 property int one: zero + 1
16 property bool two: c2c1c1.two
22 property string three: "three"
27 property alias othercolor: c2c1.color
28 color: if (c2c1.color == Qt.rgba(0,0,1)) Qt.rgba(1,0,0); else Qt.rgba(0,1,0);
36 property string two: "two"
41 property string three: "2" + c1c2.three
47 property bool two: false
54 property string three: "1" + parent.three
564 property alias c1one: c1.one
565 property bool success: true
566 Component.onCompleted: {
567 // test state after initial bindings evaluation
568 if (zero != 0) success = false;
569 if (c1.one != 1) success = false;
570 if (c1c1.two != false) success = false;
571 if (c1c2.three != "three") success = false;
572 if (c1c2c3.color != Qt.rgba(1,0,0)) success = false;
573 if (c2.two != "two") success = false;
574 if (c2c1.three != "2three") success = false;
575 if (c2c1.color != Qt.rgba(0,0,1)) success = false;
576 if (c2c1c1.two != false) success = false;
577 if (c2c1c2.three != "12three") success = false;
578 if (c3.children.length != 500) success = false;
580 // now retrigger bindings evaluation
582 if (c1.one != 6) success = false;
584 if (c1c1.two != true) success = false;
586 if (c2c1.three != "23") success = false;
587 if (c2c1c2.three != "123") success = false;
588 c2c1.color = Qt.rgba(1,0,0);
589 if (c1c2c3.color != Qt.rgba(0,1,0)) success = false;
590 if (c1c2c3.othercolor != Qt.rgba(1,0,0)) success = false;