summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-05-02 09:20:48 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-05-02 10:13:17 +0300
commita5499c546bffba0a53fd36458e08c1ad5bd8b384 (patch)
tree19c4c3979754d39a1930d6b8a488831e27fd771d /tests
parent232715f311f87d970af3224150a8687907c72071 (diff)
Fix mouse events for QtQuick2
Change-Id: Ibb6b80765c6433a47670046ca72e156c697b1f97 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/quick2chartproperties/qml/quick2chartproperties/LineChart.qml1
-rw-r--r--tests/quick2chartproperties/qml/quick2chartproperties/ScatterChart.qml2
-rw-r--r--tests/quick2chartproperties/qml/quick2chartproperties/SplineChart.qml2
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/quick2chartproperties/qml/quick2chartproperties/LineChart.qml b/tests/quick2chartproperties/qml/quick2chartproperties/LineChart.qml
index b2070cf6..787b619f 100644
--- a/tests/quick2chartproperties/qml/quick2chartproperties/LineChart.qml
+++ b/tests/quick2chartproperties/qml/quick2chartproperties/LineChart.qml
@@ -63,5 +63,6 @@ ChartView {
XYPoint { x: 3.4; y: 2.0 }
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);
}
}
diff --git a/tests/quick2chartproperties/qml/quick2chartproperties/ScatterChart.qml b/tests/quick2chartproperties/qml/quick2chartproperties/ScatterChart.qml
index a360c74e..e6fb3dac 100644
--- a/tests/quick2chartproperties/qml/quick2chartproperties/ScatterChart.qml
+++ b/tests/quick2chartproperties/qml/quick2chartproperties/ScatterChart.qml
@@ -41,6 +41,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);
@@ -59,5 +60,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);
}
}
diff --git a/tests/quick2chartproperties/qml/quick2chartproperties/SplineChart.qml b/tests/quick2chartproperties/qml/quick2chartproperties/SplineChart.qml
index bbeccd99..c66fc962 100644
--- a/tests/quick2chartproperties/qml/quick2chartproperties/SplineChart.qml
+++ b/tests/quick2chartproperties/qml/quick2chartproperties/SplineChart.qml
@@ -42,6 +42,7 @@ ChartView {
onVisibleChanged: console.log("splineSeries.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("splineSeries.onPointReplaced: " + index);
onPointRemoved: console.log("splineSeries.onPointRemoved: " + index);
onPointAdded: console.log("splineSeries.onPointAdded: " + series.at(index).x + ", " + series.at(index).y);
@@ -61,5 +62,6 @@ ChartView {
XYPoint { x: 3.4; y: 2.0 }
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);
}
}