diff options
Diffstat (limited to 'tests/manual/qmlchartproperties')
11 files changed, 67 insertions, 0 deletions
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml index 069e17de..d94f8a2e 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml @@ -81,6 +81,9 @@ ChartView { + font.family); onPointLabelsColorChanged: console.log(name + ".onPointLabelsColorChanged: " + color); + onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y); + onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y); + onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y); } AreaSeries { @@ -107,5 +110,8 @@ ChartView { onSelected: console.log(name + ".onSelected"); onColorChanged: console.log(name + ".onColorChanged: " + color); onBorderColorChanged: console.log(name + ".onBorderColorChanged: " + borderColor); + onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y); + onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y); + onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y); } } diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarChart.qml index ad088646..45bd494a 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarChart.qml @@ -51,6 +51,10 @@ ChartView { onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count); onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count); onValueChanged: console.log("barset.onValuesChanged: " + index); + onPressed: console.log("barset.onPressed: " + index); + onReleased: console.log("barset.onReleased: " + index); + onDoubleClicked: console.log("barset.onDoubleClicked: " + index); + } BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } @@ -65,6 +69,9 @@ ChartView { onCountChanged: console.log("barSeries.onCountChanged: " + count); onLabelsFormatChanged: console.log("barSeries.onLabelsFormatChanged: " + format); onLabelsPositionChanged: console.log("barSeries.onLabelsPositionChanged: " + series.labelsPosition); + onPressed: console.log("barSeries.onPressed: " + barset + " " + index); + onReleased: console.log("barSeries.onReleased: " + barset + " " + index); + onDoubleClicked: console.log("barSeries.onDoubleClicked: " + barset + " " + index); function changeLabelsPosition() { if (labelsPosition === BarSeries.LabelsCenter) diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalBarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalBarChart.qml index aedb26cb..278d2964 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalBarChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalBarChart.qml @@ -50,6 +50,9 @@ ChartView { onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count); onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count); onValueChanged: console.log("barset.onValuesChanged: " + index); + onPressed: console.log("barset.onPressed: " + index); + onReleased: console.log("barset.onReleased: " + index); + onDoubleClicked: console.log("barset.onDoubleClicked: " + index); } BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } @@ -66,6 +69,9 @@ ChartView { + format); onLabelsPositionChanged: console.log("horizontalBarSeries.onLabelsPositionChanged: " + series.labelsPosition); + onPressed: console.log("horizontalBarSeries.onPressed: " + barset + " " + index); + onReleased: console.log("horizontalBarSeries.onReleased: " + barset + " " + index); + onDoubleClicked: console.log("horizontalBarSeries.onDoubleClicked: " + barset + " " + index); function changeLabelsPosition() { if (labelsPosition === BarSeries.LabelsCenter) diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml index c0d1b443..eab84f71 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml @@ -50,6 +50,9 @@ ChartView { onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count); onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count); onValueChanged: console.log("barset.onValuesChanged: " + index); + onPressed: console.log("barset.onPressed: " + index); + onReleased: console.log("barset.onReleased: " + index); + onDoubleClicked: console.log("barset.onDoubleClicked: " + index); } BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } @@ -68,6 +71,9 @@ ChartView { onLabelsPositionChanged: console.log( "horizontalPercentBarSeries.onLabelsPositionChanged: " + series.labelsPosition); + onPressed: console.log("horizontalPercentBarSeries.onPressed: " + barset + " " + index); + onReleased: console.log("horizontalPercentBarSeries.onReleased: " + barset + " " + index); + onDoubleClicked: console.log("horizontalPercentBarSeries.onDoubleClicked: " + barset + " " + index); function changeLabelsPosition() { if (labelsPosition === BarSeries.LabelsCenter) diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalStackedBarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalStackedBarChart.qml index 3b94e89d..ab79dc5a 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalStackedBarChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalStackedBarChart.qml @@ -50,6 +50,9 @@ ChartView { onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count); onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count); onValueChanged: console.log("barset.onValuesChanged: " + index); + onPressed: console.log("barset.onPressed: " + index); + onReleased: console.log("barset.onReleased: " + index); + onDoubleClicked: console.log("barset.onDoubleClicked: " + index); } BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } @@ -68,6 +71,9 @@ ChartView { onLabelsPositionChanged: console.log( "horizontalStackedBarSeries.onLabelsPositionChanged: " + series.labelsPosition); + onPressed: console.log("horizontalStackedBarSeries.onPressed: " + barset + " " + index); + onReleased: console.log("horizontalStackedBarSeries.onReleased: " + barset + " " + index); + onDoubleClicked: console.log("horizontalStackedBarSeries.onDoubleClicked: " + barset + " " + index); function changeLabelsPosition() { if (labelsPosition === BarSeries.LabelsCenter) diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/LineChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/LineChart.qml index de3134a8..6e16918a 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/LineChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/LineChart.qml @@ -62,6 +62,9 @@ ChartView { + font.family); onPointLabelsColorChanged: console.log("lineSeries.onPointLabelsColorChanged: " + color); + onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y); + onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y); + onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y); } LineSeries { @@ -74,5 +77,8 @@ ChartView { XYPoint { x: 4.1; y: 2.3 } onClicked: console.log(name + ".onClicked: " + point.x + ", " + point.y); onHovered: console.log(name + ".onHovered: " + point.x + ", " + point.y); + onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y); + onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y); + onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y); } } diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/PercentBarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/PercentBarChart.qml index 74c9b88f..c595873f 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/PercentBarChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/PercentBarChart.qml @@ -51,6 +51,9 @@ ChartView { onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count); onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count); onValueChanged: console.log("barset.onValuesChanged: " + index); + onPressed: console.log("barset.onPressed: " + index); + onReleased: console.log("barset.onReleased: " + index); + onDoubleClicked: console.log("barset.onDoubleClicked: " + index); } BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } @@ -67,6 +70,9 @@ ChartView { + format); onLabelsPositionChanged: console.log("percentBarSeries.onLabelsPositionChanged: " + series.labelsPosition); + onPressed: console.log("percentBarSeries.onPressed: " + barset + " " + index); + onReleased: console.log("percentBarSeries.onReleased: " + barset + " " + index); + onDoubleClicked: console.log("percentBarSeries.onDoubleClicked: " + barset + " " + index); function changeLabelsPosition() { if (labelsPosition === BarSeries.LabelsCenter) diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/PieChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/PieChart.qml index 37a321ae..675ae3ee 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/PieChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/PieChart.qml @@ -47,6 +47,9 @@ ChartView { onAngleSpanChanged: console.log("slice.onAngleSpanChanged: " + angleSpan); onClicked: console.log("slice.onClicked: " + label); onHovered: console.log("slice.onHovered: " + state); + onPressed: console.log("slice.onPressed: " + label); + onReleased: console.log("slice.onReleased: " + label); + onDoubleClicked: console.log("slice.onDoubleClicked: " + label); } PieSlice { label: "slice2"; value: 22 } PieSlice { label: "slice3"; value: 33 } @@ -63,5 +66,8 @@ ChartView { onSliceRemoved: console.log("pieSeries.onSliceRemoved: " + slice.label); onCountChanged: console.log("pieSeries.onCountChanged: " + count); onSumChanged: console.log("pieSeries.onSumChanged: " + sum); + onPressed: console.log("pieSeries.onPressed: " + slice.label); + onReleased: console.log("pieSeries.onReleased: " + slice.label); + onDoubleClicked: console.log("pieSeries.onDoubleClicked: " + slice.label); } } diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml index d531ac32..2b815530 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml @@ -59,6 +59,9 @@ ChartView { + font.family); onPointLabelsColorChanged: console.log("lineSeries.onPointLabelsColorChanged: " + color); + onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y); + onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y); + onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y); } ScatterSeries { @@ -71,5 +74,8 @@ ChartView { XYPoint { x: 2.67; y: 2.65 } onClicked: console.log(name + ".onClicked: " + point.x + ", " + point.y); onHovered: console.log(name + ".onHovered: " + point.x + ", " + point.y); + onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y); + onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y); + onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y); } } diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml index 3a182d19..fd78a449 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml @@ -61,6 +61,9 @@ ChartView { + font.family); onPointLabelsColorChanged: console.log("splineSeries.onPointLabelsColorChanged: " + color); + onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y); + onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y); + onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y); } SplineSeries { @@ -73,5 +76,8 @@ ChartView { XYPoint { x: 4.1; y: 2.3 } onClicked: console.log(name + ".onClicked: " + point.x + ", " + point.y); onHovered: console.log(name + ".onHovered: " + point.x + ", " + point.y); + onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y); + onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y); + onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y); } } diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/StackedBarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/StackedBarChart.qml index a59f0e12..aff78367 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/StackedBarChart.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/StackedBarChart.qml @@ -50,6 +50,9 @@ ChartView { onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count); onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count); onValueChanged: console.log("barset.onValuesChanged: " + index); + onPressed: console.log("barset.onPressed: " + index); + onReleased: console.log("barset.onReleased: " + index); + onDoubleClicked: console.log("barset.onDoubleClicked: " + index); } BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } @@ -66,6 +69,9 @@ ChartView { + format); onLabelsPositionChanged: console.log("stackedBarSeries.onLabelsPositionChanged: " + series.labelsPosition); + onPressed: console.log("stackedBarSeries.onPressed: " + barset + " " + index); + onReleased: console.log("stackedBarSeries.onReleased: " + barset + " " + index); + onDoubleClicked: console.log("stackedBarSeries.onDoubleClicked: " + barset + " " + index); function changeLabelsPosition() { if (labelsPosition === BarSeries.LabelsCenter) |