summaryrefslogtreecommitdiffstats
path: root/tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
diff options
context:
space:
mode:
authorTero Ahola <tero.ahola@digia.com>2012-08-08 12:13:13 +0300
committerTero Ahola <tero.ahola@digia.com>2012-08-08 12:14:43 +0300
commit94c0d22f0f14edd88d61b9018848fcf8752cccf3 (patch)
treeb9f15001094fdba1e2e8b969c05e311c8df96750 /tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
parentc1cdb21ee47d43b6b164c817f6b294b84ce20586 (diff)
Optimization: line series now uses QPainter::drawLine
Diffstat (limited to 'tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml')
-rw-r--r--tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml54
1 files changed, 33 insertions, 21 deletions
diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml b/tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
index b507fa9c..5ae4a8a5 100644
--- a/tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
+++ b/tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
@@ -45,31 +45,43 @@ ChartView {
XYPoint { x: 10; y: 3 }
XYPoint { x: 11; y: 3 }
}
- lowerSeries: LineSeries {
- XYPoint { x: 0; y: 0 }
- XYPoint { x: 1; y: 0 }
- XYPoint { x: 2; y: 0 }
- XYPoint { x: 3; y: 0 }
- XYPoint { x: 4; y: 0 }
- XYPoint { x: 5; y: 0 }
- XYPoint { x: 6; y: 0 }
- XYPoint { x: 7; y: 0 }
- XYPoint { x: 8; y: 0 }
- XYPoint { x: 9; y: 0 }
- XYPoint { x: 10; y: 0 }
- XYPoint { x: 11; y: 0 }
- }
- onNameChanged: console.log("areaSeries.onNameChanged: " + name);
- onVisibleChanged: console.log("areaSeries.onVisibleChanged: " + visible);
+ onNameChanged: console.log(name + ".onNameChanged: " + name);
+ onVisibleChanged: console.log(name + ".onVisibleChanged: " + visible);
onClicked: console.log(name + ".onClicked: " + point.x + ", " + point.y);
- onSelected: console.log("areaSeries.onSelected");
- onColorChanged: console.log("areaSeries.onColorChanged: " + color);
- onBorderColorChanged: console.log("areaSeries.onBorderColorChanged: " + borderColor);
-// onCountChanged: console.log("areaSeries.onCountChanged: " + count);
+ onSelected: console.log(name + ".onSelected");
+ onColorChanged: console.log(name + ".onColorChanged: " + color);
+ onBorderColorChanged: console.log(name + ".onBorderColorChanged: " + borderColor);
+// onCountChanged: console.log(name + ".onCountChanged: " + count);
Component.onCompleted: {
- createDefaultAxes();
+ createDefaultAxes();
+ }
+ }
+
+ AreaSeries {
+ name: "area 2"
+
+ upperSeries: LineSeries {
+ XYPoint { x: 0; y: 0.5 }
+ XYPoint { x: 1; y: 1.5 }
+ XYPoint { x: 2; y: 0.3 }
+ XYPoint { x: 3; y: 1.5 }
+ XYPoint { x: 4; y: 0.1 }
+ XYPoint { x: 5; y: 0.3 }
+ XYPoint { x: 6; y: 1.2 }
+ XYPoint { x: 7; y: 1.3 }
+ XYPoint { x: 8; y: 0.2 }
+ XYPoint { x: 9; y: 0.1 }
+ XYPoint { x: 10; y: 3.2 }
+ XYPoint { x: 11; y: 4.6 }
}
+
+ onNameChanged: console.log(name + ".onNameChanged: " + name);
+ onVisibleChanged: console.log(name + ".onVisibleChanged: " + visible);
+ onClicked: console.log(name + ".onClicked: " + point.x + ", " + point.y);
+ onSelected: console.log(name + ".onSelected");
+ onColorChanged: console.log(name + ".onColorChanged: " + color);
+ onBorderColorChanged: console.log(name + ".onBorderColorChanged: " + borderColor);
}
}