summaryrefslogtreecommitdiffstats
path: root/tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml')
-rw-r--r--tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml b/tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml
index cd898914..d531ac32 100644
--- a/tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml
+++ b/tests/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml
@@ -18,8 +18,8 @@
**
****************************************************************************/
-import QtQuick 1.0
-import QtCommercial.Chart 1.4
+import QtQuick 2.0
+import QtCharts 2.0
ChartView {
title: "scatter series"
@@ -43,6 +43,7 @@ ChartView {
onVisibleChanged: console.log("scatterSeries.onVisibleChanged: " + visible);
onOpacityChanged: console.log(name + ".onOpacityChanged: " + opacity);
onClicked: console.log(name + ".onClicked: " + point.x + ", " + point.y);
+ onHovered: console.log(name + ".onHovered: " + point.x + ", " + point.y);
onPointReplaced: console.log("scatterSeries.onPointReplaced: " + index);
onPointRemoved: console.log("scatterSeries.onPointRemoved: " + index);
onPointAdded: console.log("scatterSeries.onPointAdded: " + series.at(index).x + ", " + series.at(index).y);
@@ -69,5 +70,6 @@ ChartView {
XYPoint { x: 2.4; y: 2.7 }
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);
}
}