diff options
author | Shawn Rutledge <shawn.rutledge@theqtcompany.com> | 2016-03-04 11:02:54 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@theqtcompany.com> | 2016-03-11 12:15:26 +0000 |
commit | 644a6a42a45ceb9790df6d6ee1c3ba43c7b9ab10 (patch) | |
tree | 493c315698238fb1736cbd29d90a52d5351feb0a /tests/auto/quick/qquickmousearea/qquickmousearea.pro | |
parent | 6300f4dde0ab3279b18a0fb29f94cfe142557cba (diff) |
MouseArea: add source property to mouse event
It comes from the source() of the QMouseEvent which triggered it.
This makes it possible to distinguish real mouse events from those
that are synthesized from touch or tablet.
And for this we need to import QtQuick 2.7
[ChangeLog][QtQuick][MouseArea] Added mouse.source property
to enable distinguishing genuine mouse events from those that
are synthesized from touch or tablet events.
Change-Id: I568964f63981703bd23e05daac5288518f09d837
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'tests/auto/quick/qquickmousearea/qquickmousearea.pro')
-rw-r--r-- | tests/auto/quick/qquickmousearea/qquickmousearea.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickmousearea/qquickmousearea.pro b/tests/auto/quick/qquickmousearea/qquickmousearea.pro index 15a080aa3e..3a4dfa946f 100644 --- a/tests/auto/quick/qquickmousearea/qquickmousearea.pro +++ b/tests/auto/quick/qquickmousearea/qquickmousearea.pro @@ -7,6 +7,7 @@ SOURCES += tst_qquickmousearea.cpp \ ../../shared/testhttpserver.cpp include (../../shared/util.pri) +include (../shared/util.pri) TESTDATA = data/* |