diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-07 19:07:50 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-11 14:52:03 (GMT) |
commit | 9f9904c52d3d598b91e589c435fa96333ef1232f (patch) | |
tree | f3784a2b869a5e195983f0d293f4774b746d3856 /src/gui/kernel/qgesture_p.h | |
parent | 73a0bca60630abe73deaab49ce310e2537a31abb (diff) | |
download | Qt-9f9904c52d3d598b91e589c435fa96333ef1232f.zip Qt-9f9904c52d3d598b91e589c435fa96333ef1232f.tar.gz Qt-9f9904c52d3d598b91e589c435fa96333ef1232f.tar.bz2 |
Improved gesture target widget detection.
Gesture is now associated with a target widget and whenever several
gesture events occur at the same time if they are supposed to be handled
by different widgets, each widget will receive only gestures related to
itself.
For example this makes possible to use gesture framework with multitouch
when user interacts with two widgets at the same time.
GraphicsView implements is not implemented yet.
Diffstat (limited to 'src/gui/kernel/qgesture_p.h')
-rw-r--r-- | src/gui/kernel/qgesture_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesture_p.h b/src/gui/kernel/qgesture_p.h index cf4e760..22d6d7f 100644 --- a/src/gui/kernel/qgesture_p.h +++ b/src/gui/kernel/qgesture_p.h @@ -85,6 +85,8 @@ public: QString type; Qt::GestureState state; + QPointer<QWidget> widget; + QRect rect; QPoint hotSpot; QDateTime startTime; |