Showing the changes to scripts/developer/utilities/lib/plotperf (1 of 7 files). Show all
Unified · Split
| @@ -55,9 +55,17 @@ Item { · 54 unmodified lines | ||
| 55 | 55 | function createValues() { |
| 56 | 56 | for (var i =0; i < plots.length; i++) { |
| 57 | 57 | var plot = plots[i]; |
| 58 | + var object = plot["object"] || root.object; | |
| 59 | + var value = plot["prop"]; | |
| 60 | + var isBinding = plot["binding"]; | |
| 61 | + if (isBinding) { | |
| 62 | + object = root.parent; | |
| 63 | + value = isBinding; | |
| 64 | + } | |
| 58 | 65 | _values.push( { |
| 59 | − object: (plot["object"] !== undefined ? plot["object"] : root.object), | |
| 60 | − value: plot["prop"], | |
| 66 | + object: object, | |
| 67 | + value: value, | |
| 68 | + fromBinding: isBinding, | |
| 61 | 69 | valueMax: 1, |
| 62 | 70 | numSamplesConstantMax: 0, |
| 63 | 71 | valueHistory: new Array(), |
| @@ -218,7 +226,6 @@ Item { · 154 unmodified lines | ||
| 218 | 226 | anchors.rightMargin: -hitboxExtension |
| 219 | 227 | |
| 220 | 228 | onClicked: { |
| 221 | − print("PerfPlot clicked!") | |
| 222 | 229 | resetMax(); |
| 223 | 230 | } |
| 224 | 231 | } |