TestLib: add mouse release at the end of a mouseDrag
authorCaroline Chao <caroline.chao@digia.com>
Wed, 27 Mar 2013 12:13:30 +0000 (13:13 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 5 Apr 2013 05:52:18 +0000 (07:52 +0200)
Change-Id: I901f23a2bc7089784ed644a53a3712669b21f417
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/imports/testlib/TestCase.qml

index f774a46..3df85b4 100644 (file)
@@ -430,6 +430,7 @@ Item {
         //trigger dragging
         mouseMove(item, x + util.dragThreshold + 1, y + util.dragThreshold + 1, delay, button)
         mouseMove(item, x + dx, y + dy, delay, button)
+        mouseRelease(item, x + dx, y + dy, button, modifiers, delay)
     }
 
     function mouseClick(item, x, y, button, modifiers, delay) {