blob: 9975bfdfa4821c0843208fb75f791fc5c16894f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
pragma Strict
import QtQml
QtObject {
property Component newEditConstraint: EditConstraint {}
property Variable variable: Variable {}
property EditConstraint edit
function trigger() {
change(variable, 55);
}
function change(v: Variable, newValue: int) {
edit = newEditConstraint.createObject(null, {myOutput: v}) as EditConstraint;
v.value = newValue;
}
}
|