Changeset View
Changeset View
Standalone View
Standalone View
source/qml/lib/Demo.qml
| Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 94 | onTriggered: { | |||
|---|---|---|---|---|---|
| 97 | a.find("qquickrectangle").first().draw({ | 97 | a.find("qquickrectangle").first().draw({ | ||
| 98 | outline: {}, | 98 | outline: {}, | ||
| 99 | ruler: {}, | 99 | ruler: {}, | ||
| 100 | brace: {to: new A.An(right2), text: "16px", center: false} | 100 | brace: {to: new A.An(right2), text: "16px", center: false} | ||
| 101 | }); | 101 | }); | ||
| 102 | 102 | | |||
| 103 | a.find("qquickrectangle").eq(2).draw({ | 103 | a.find("qquickrectangle").eq(2).draw({ | ||
| 104 | outline: {aspectratio: true}, | 104 | outline: {aspectratio: true}, | ||
| 105 | ruler: {horizontal: true} | ||||
| 105 | }); | 106 | }); | ||
| 106 | 107 | | |||
| 107 | a.find("qquickrectangle").eq(3).draw({ | 108 | a.find("qquickrectangle").eq(3).draw({ | ||
| 108 | messure: { to: a.find("qquickrectangle").eq(4)} | 109 | messure: { to: a.find("qquickrectangle").eq(4)} | ||
| 109 | }); | 110 | }); | ||
| 110 | } | 111 | } | ||
| 111 | } | 112 | } | ||
| 112 | 113 | | |||
| 113 | // Draw helpers and anotation | 114 | // Draw helpers and anotation | ||
| 114 | Raster { | 115 | Raster { | ||
| 115 | base: Kirigami.Units.gridUnit | 116 | base: Kirigami.Units.gridUnit | ||
| 116 | mobile: true | 117 | mobile: true | ||
| 117 | desktop: true | 118 | desktop: true | ||
| 118 | } | 119 | } | ||
| 119 | } | 120 | } | ||