summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorTero Ahola <tero.ahola@digia.com>2012-12-13 15:01:33 +0200
committerTero Ahola <tero.ahola@digia.com>2012-12-13 15:02:49 +0200
commiteeb090abac42f7c3391b1600c8a263353603e66d (patch)
tree115a0094c21c7f89d15d33929d10e2f2aa179cbb /demos
parent6208bdd340a0a3bdb6b08b17d1d5afada3b21d94 (diff)
Fixed Qt5 specific issue with ChartView.createSeries series types
Diffstat (limited to 'demos')
-rw-r--r--demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml16
1 files changed, 8 insertions, 8 deletions
diff --git a/demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml b/demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml
index 97c94039..7d05fc2e 100644
--- a/demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml
+++ b/demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml
@@ -81,16 +81,16 @@ ChartView {
// but the series have their own y-axes to make it possible to control the y-offset
// of the "signal sources".
if (type == "line") {
- scopeView.createSeries(ChartView.SeriesTypeLine, "signal 1", axisX, axisY1);
- scopeView.createSeries(ChartView.SeriesTypeLine, "signal 2", axisX, axisY2);
+ chartView.createSeries(ChartView.SeriesTypeLine, "signal 1", axisX, axisY1);
+ chartView.createSeries(ChartView.SeriesTypeLine, "signal 2", axisX, axisY2);
} else if (type == "spline") {
- scopeView.createSeries(ChartView.SeriesTypeSpline, "signal 1", axisX, axisY1);
- scopeView.createSeries(ChartView.SeriesTypeSpline, "signal 2", axisX, axisY2);
+ chartView.createSeries(ChartView.SeriesTypeSpline, "signal 1", axisX, axisY1);
+ chartView.createSeries(ChartView.SeriesTypeSpline, "signal 2", axisX, axisY2);
} else {
- var series1 = scopeView.createSeries(ChartView.SeriesTypeScatter, "signal 1", axisX, axisY1);
+ var series1 = chartView.createSeries(ChartView.SeriesTypeScatter, "signal 1", axisX, axisY1);
series1.markerSize = 3;
series1.borderColor = "transparent";
- var series2 = scopeView.createSeries(ChartView.SeriesTypeScatter, "signal 2", axisX, axisY2);
+ var series2 = chartView.createSeries(ChartView.SeriesTypeScatter, "signal 2", axisX, axisY2);
series2.markerSize = 3;
series2.borderColor = "transparent";
}
@@ -105,9 +105,9 @@ ChartView {
function setAnimations(enabled) {
if (enabled)
- scopeView.animationOptions = ChartView.SeriesAnimations;
+ chartView.animationOptions = ChartView.SeriesAnimations;
else
- scopeView.animationOptions = ChartView.NoAnimation;
+ chartView.animationOptions = ChartView.NoAnimation;
}
function changeRefreshRate(rate) {