Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Item {
- property int tmp0: getTmp0Value(tmp1)
- property int tmp1: getTmp1Value()
- function getTmp1Value() {
- console.log("getTmp1Value should be called only once and before getTmp0Value");
- //var timeStart = new Date().getTime();
- //while (new Date().getTime() - timeStart < 2000) {
- // // Do nothing
- //}
- return 1;
- }
- function getTmp0Value(arg) {
- console.log("getTmp0Value should be called only once and aftere getTmp1Value");
- return arg + 1;
- }
- }
- QtObject {
- property int tmp0: {
- print("tmp0 should be evaluated only once and after tmp1");
- return tmp1 + 1;
- }
- property int tmp1: {
- print("tmp1 should be evaluated only once and before tmp0");
- return 1;
- }
- }
- //qml: tmp0 should be evaluated only once and after tmp1
- //qml: tmp1 should be evaluated only once and before tmp0
- //qml: tmp1 should be evaluated only once and before tmp0
- //qml: getTmp1Value should be called only once and before getTmp0Value
- //qml: getTmp0Value should be called only once and aftere getTmp1Value
- //qml: getTmp1Value should be called only once and before getTmp0Value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement