From: Caroline Chao Date: Wed, 27 Mar 2013 12:13:30 +0000 (+0100) Subject: TestLib: add mouse release at the end of a mouseDrag X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=73131271ffb54abb416791ae2dcc1bf9afb4715e;p=konrad%2Fqtdeclarative.git TestLib: add mouse release at the end of a mouseDrag Change-Id: I901f23a2bc7089784ed644a53a3712669b21f417 Reviewed-by: Alan Alpert --- diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml index f774a46..3df85b4 100644 --- a/src/imports/testlib/TestCase.qml +++ b/src/imports/testlib/TestCase.qml @@ -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) {