blob: bfa8d4948c82afcdbd0298c4a324526d64bb7d8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import QtQuick 2.0
Item {
QtObject {
id: object
property bool prop1: true
function myfunction() { return true; }
property bool prop2: object.prop1 && myfunction();
}
property bool test1: object.prop1 && object.prop2
property bool test2: object.prop1
Component.onCompleted: {
object.prop1 = false;
}
}
|