Changeset View
Changeset View
Standalone View
Standalone View
Modules/energy/package/contents/ui/Graph.qml
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 33 | { | |||
---|---|---|---|---|---|
47 | property real xMin: 0 | 47 | property real xMin: 0 | ||
48 | property real yStep: 20 | 48 | property real yStep: 20 | ||
49 | 49 | | |||
50 | property string yUnits: "" | 50 | property string yUnits: "" | ||
51 | property string xUnits: "" | 51 | property string xUnits: "" | ||
52 | 52 | | |||
53 | //internal | 53 | //internal | ||
54 | 54 | | |||
55 | property real plotWidth: width - xPadding *2 | 55 | property real plotWidth: width - xPadding | ||
56 | property real plotHeight: height - yPadding *2 | 56 | property real plotHeight: height - yPadding *2 | ||
57 | 57 | | |||
58 | onDataChanged: { | 58 | onDataChanged: { | ||
59 | canvas.requestPaint(); | 59 | canvas.requestPaint(); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | //take a QPointF | 62 | //take a QPointF | ||
63 | function scalePoint(plot) { | 63 | function scalePoint(plot) { | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |