aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest/quicktestevent_p.h
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@theqtcompany.com>2015-02-27 12:11:58 +0100
committerCaroline Chao <caroline.chao@theqtcompany.com>2015-03-02 11:45:35 +0000
commit726eaaeeeede086ed341899b8ee0c1570e6bf6f5 (patch)
treeb3880ee109108fb11299a70ac701e6bf1915b3be /src/qmltest/quicktestevent_p.h
parent09e903e0743b3d3d58c31621b368ea317140b0f2 (diff)
testlib: Introduce MouseDoubleClickSequence() method
The existing method MouseDoubleClick() emulates the mouse double click event only. The added method MouseDoubleClickSequence() emulates the full sequence of mouse events a physical double-click would generate: Press-Release-Press-DoubleClick-Release Introducing a new method in order to provide convenience when a test requires to simulate a complete double-click action without changing the behavior of MouseDoubleClick() and risking to break existing tests. Add autotest. Task-number: QTBUG-42185 Change-Id: I1cdddd9e21d3b1d8a818f6d4e3717b06b7d70e08 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/qmltest/quicktestevent_p.h')
-rw-r--r--src/qmltest/quicktestevent_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmltest/quicktestevent_p.h b/src/qmltest/quicktestevent_p.h
index 3005d84128..b7f8f3eda2 100644
--- a/src/qmltest/quicktestevent_p.h
+++ b/src/qmltest/quicktestevent_p.h
@@ -63,6 +63,8 @@ public Q_SLOTS:
int modifiers, int delay);
bool mouseDoubleClick(QObject *item, qreal x, qreal y, int button,
int modifiers, int delay);
+ bool mouseDoubleClickSequence(QObject *item, qreal x, qreal y, int button,
+ int modifiers, int delay);
bool mouseMove(QObject *item, qreal x, qreal y, int delay, int buttons);
#ifndef QT_NO_WHEELEVENT