summaryrefslogtreecommitdiffstats
path: root/tests/qmlchartproperties
diff options
context:
space:
mode:
authorTero Ahola <tero.ahola@digia.com>2012-08-29 13:38:36 +0300
committerTero Ahola <tero.ahola@digia.com>2012-08-29 15:00:00 +0300
commit966b9cf963440b3c8dce470b97d8053f1fe2346c (patch)
treeec1974cbd55fb3e47385cf11f53660f60f662b30 /tests/qmlchartproperties
parent77167a85d8cfae25b148b6f7e43c5c4a0627b51e (diff)
Adding missing QML series API line/border properties
Diffstat (limited to 'tests/qmlchartproperties')
-rw-r--r--tests/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml10
-rw-r--r--tests/qmlchartproperties/qml/qmlchartproperties/LineChart.qml3
-rw-r--r--tests/qmlchartproperties/qml/qmlchartproperties/LineEditor.qml24
-rw-r--r--tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml1
-rw-r--r--tests/qmlchartproperties/qml/qmlchartproperties/ScatterEditor.qml8
-rw-r--r--tests/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml3
6 files changed, 48 insertions, 1 deletions
diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml b/tests/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml
index c705ee60..8556fb69 100644
--- a/tests/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml
+++ b/tests/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml
@@ -74,7 +74,7 @@ Row {
}
Button {
text: "set 1 replace"
- onClicked: series.at(0).replace(series.at(0).count - 1, series.at(0).at(series.at(0).count - 1).y + 0.5);
+ onClicked: series.at(0).replace(series.at(0).count - 1, series.at(0).at(series.at(0).count - 1) + 1.5);
}
Button {
text: "set 1 remove"
@@ -90,6 +90,14 @@ Row {
onClicked: series.at(0).borderColor = main.nextColor();
}
Button {
+ text: "set 1 borderWidth + (" + series.at(0).borderWidth + ")"
+ onClicked: series.at(0).borderWidth += 0.5;
+ }
+ Button {
+ text: "set 1 borderWidth - (" + series.at(0).borderWidth + ")"
+ onClicked: series.at(0).borderWidth -= 0.5;
+ }
+ Button {
text: "set 1 label color"
onClicked: series.at(0).labelColor = main.nextColor();
}
diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/LineChart.qml b/tests/qmlchartproperties/qml/qmlchartproperties/LineChart.qml
index ce1628c5..2171708a 100644
--- a/tests/qmlchartproperties/qml/qmlchartproperties/LineChart.qml
+++ b/tests/qmlchartproperties/qml/qmlchartproperties/LineChart.qml
@@ -46,6 +46,9 @@ ChartView {
onPointRemoved: console.log("lineSeries.onPointRemoved: " + index);
onPointAdded: console.log("lineSeries.onPointAdded: " + series.at(index).x + ", " + series.at(index).y);
onColorChanged: console.log("lineSeries.onColorChanged: " + color);
+ onWidthChanged: console.log("lineSeries.onWidthChanged: " + width);
+ onStyleChanged: console.log("lineSeries.onStyleChanged: " + style);
+ onCapStyleChanged: console.log("lineSeries.onCapStyleChanged: " + capStyle);
onCountChanged: console.log("lineSeries.onCountChanged: " + count);
}
diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/LineEditor.qml b/tests/qmlchartproperties/qml/qmlchartproperties/LineEditor.qml
index d908fa35..dbdec6d1 100644
--- a/tests/qmlchartproperties/qml/qmlchartproperties/LineEditor.qml
+++ b/tests/qmlchartproperties/qml/qmlchartproperties/LineEditor.qml
@@ -36,6 +36,30 @@ Flow {
onClicked: series.color = main.nextColor();
}
Button {
+ text: "width + (" + series.width + ")"
+ onClicked: series.width += 0.5;
+ }
+ Button {
+ text: "width - (" + series.width + ")"
+ onClicked: series.width -= 0.5;
+ }
+ Button {
+ text: "style + (" + series.style + ")"
+ onClicked: series.style++;
+ }
+ Button {
+ text: "style - (" + series.style + ")"
+ onClicked: series.style--;
+ }
+ Button {
+ text: "cap style + (" + series.capStyle + ")"
+ onClicked: series.capStyle++;
+ }
+ Button {
+ text: "cap style - (" +series.capStyle + ")"
+ onClicked: series.capStyle--;
+ }
+ Button {
text: "points visible"
onClicked: series.pointsVisible = !series.pointsVisible;
}
diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml b/tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml
index c018fc18..8f3f5e37 100644
--- a/tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml
+++ b/tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml
@@ -45,6 +45,7 @@ ChartView {
onPointAdded: console.log("scatterSeries.onPointAdded: " + series.at(index).x + ", " + series.at(index).y);
onColorChanged: console.log("scatterSeries.onColorChanged: " + color);
onBorderColorChanged: console.log("scatterSeries.onBorderColorChanged: " + borderColor);
+ onBorderWidthChanged: console.log("scatterSeries.onBorderChanged: " + borderWidth);
onCountChanged: console.log("scatterSeries.onCountChanged: " + count);
}
diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/ScatterEditor.qml b/tests/qmlchartproperties/qml/qmlchartproperties/ScatterEditor.qml
index 134f6e04..b0106c5c 100644
--- a/tests/qmlchartproperties/qml/qmlchartproperties/ScatterEditor.qml
+++ b/tests/qmlchartproperties/qml/qmlchartproperties/ScatterEditor.qml
@@ -39,6 +39,14 @@ Flow {
onClicked: series.borderColor = main.nextColor();
}
Button {
+ text: "borderWidth + (" + series.borderWidth + ")"
+ onClicked: series.borderWidth += 0.5;
+ }
+ Button {
+ text: "borderWidth - (" + series.borderWidth + ")"
+ onClicked: series.borderWidth -= 0.5;
+ }
+ Button {
text: "markerSize +"
onClicked: series.markerSize += 1.0;
}
diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml b/tests/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml
index 7c0afe02..13af6afc 100644
--- a/tests/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml
+++ b/tests/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml
@@ -45,6 +45,9 @@ ChartView {
onPointRemoved: console.log("splineSeries.onPointRemoved: " + index);
onPointAdded: console.log("splineSeries.onPointAdded: " + series.at(index).x + ", " + series.at(index).y);
onColorChanged: console.log("splineSeries.onColorChanged: " + color);
+ onWidthChanged: console.log("splineSeries.onWidthChanged: " + width);
+ onStyleChanged: console.log("splineSeries.onStyleChanged: " + style);
+ onCapStyleChanged: console.log("splineSeries.onCapStyleChanged: " + capStyle);
onCountChanged: console.log("splineSeries.onCountChanged: " + count);
}