summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-21 05:41:43 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-21 06:11:48 (GMT)
commitccd9efbe06825f25eebefbfa72bc065d15d190ad (patch)
tree87fdf5d554f7251b09ccd11faa2f69f17db23891 /tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp
parent6abe7f1ef6021a1174d88d1a2811c58241a96707 (diff)
downloadQt-ccd9efbe06825f25eebefbfa72bc065d15d190ad.zip
Qt-ccd9efbe06825f25eebefbfa72bc065d15d190ad.tar.gz
Qt-ccd9efbe06825f25eebefbfa72bc065d15d190ad.tar.bz2
Emit released and hoveredChanged in MouseArea when a UngrabMouse is received
The unbgrab mouse happens when the mouse area is inside a flickable and the flickables takes control over the mouse handling. In this case, the UngrabMouse will behave similarly to a MouseRelease, emitting released, pressedChanged and hoveredChanged. Visual autotest added to mousearea in qmlvisual. Reviewed-by: Michael Brasser
Diffstat (limited to 'tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp')
-rw-r--r--tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp b/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp
index 681b530..5f25882 100644
--- a/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp
+++ b/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp
@@ -117,6 +117,9 @@ void tst_qmlvisual::visual_data()
files << QT_TEST_SOURCE_DIR "/qdeclarativemousearea/drag.qml";
files << QT_TEST_SOURCE_DIR "/fillmode/fillmode.qml";
+ // new tests
+ files << QT_TEST_SOURCE_DIR "/qdeclarativemousearea/mousearea-flickable.qml";
+
//these reliably fail in CI, for unknown reasons
//files << QT_TEST_SOURCE_DIR "/animation/easing/easing.qml";
//files << QT_TEST_SOURCE_DIR "/animation/pauseAnimation/pauseAnimation-visual.qml";