diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-09-01 09:10:53 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-09-03 09:30:54 (GMT) |
commit | a1a0ea71d8861e2b794f2f9b55447d50fc520de3 (patch) | |
tree | 4501c80ddb47c3dbe9526c16f8ede26716054a54 /src/gui/kernel/qgesture_p.h | |
parent | 0d5b6dccf5fa854632e61971364629b36e0d3857 (diff) | |
download | Qt-a1a0ea71d8861e2b794f2f9b55447d50fc520de3.zip Qt-a1a0ea71d8861e2b794f2f9b55447d50fc520de3.tar.gz Qt-a1a0ea71d8861e2b794f2f9b55447d50fc520de3.tar.bz2 |
Improved the gesture api.
Added a new widget attribute Qt::WA_DontUseStandardGestures that disables all
implicit gestures (i.e. gestures that are automatically enabled by Qt itself).
This change also changes the way gestures are handled on
QAbstractScrollArea-based widgets on Windows - the gestures are supposed to be
created on the viewport widget.
Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/kernel/qgesture_p.h')
-rw-r--r-- | src/gui/kernel/qgesture_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/kernel/qgesture_p.h b/src/gui/kernel/qgesture_p.h index 2cfabef..ddca79e 100644 --- a/src/gui/kernel/qgesture_p.h +++ b/src/gui/kernel/qgesture_p.h @@ -70,7 +70,7 @@ class QGesturePrivate : public QObjectPrivate public: QGesturePrivate() : gestureTarget(0), graphicsItem(0), eventFilterProxyGraphicsItem(0), - state(Qt::NoGesture) + state(Qt::NoGesture), implicitGesture(false) { } @@ -81,6 +81,9 @@ public: QGraphicsItem *eventFilterProxyGraphicsItem; Qt::GestureState state; + + // the flag specifies if the gesture was created implicitely by Qt. + bool implicitGesture; }; QT_END_NAMESPACE |