diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-08 16:46:44 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-11 14:52:04 (GMT) |
commit | 81a64345258f2f2ad5cf77355f7ecbd3ebad9734 (patch) | |
tree | 6fa024d2cadedae9ecd4e1718f704281112a78b5 /src/gui/kernel/qgesture.cpp | |
parent | 0edf9fc7ede35995ec37197b5fb5ef92a4ccf60f (diff) | |
download | Qt-81a64345258f2f2ad5cf77355f7ecbd3ebad9734.zip Qt-81a64345258f2f2ad5cf77355f7ecbd3ebad9734.tar.gz Qt-81a64345258f2f2ad5cf77355f7ecbd3ebad9734.tar.bz2 |
Improved gesture propagation.
Each gesture can now be accepted separately and not accepted gestures
will be propagated to parent widget that are subscribed to them.
Added an internal flag to specify that gesture is a "singleshot" - aka
if the gesture is not continious and will not have a GestureStarted
state, but only GestureFinished.
Asynchronous gestures still need to fixed, as well as QGraphicsView.
Diffstat (limited to 'src/gui/kernel/qgesture.cpp')
-rw-r--r-- | src/gui/kernel/qgesture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qgesture.cpp b/src/gui/kernel/qgesture.cpp index 4d492f8..7437ed3 100644 --- a/src/gui/kernel/qgesture.cpp +++ b/src/gui/kernel/qgesture.cpp @@ -79,7 +79,7 @@ QString qt_getStandardGestureTypeName(Qt::GestureType type); QGestureRecognizer classes. */ QGesture::QGesture(QObject *parent, const QString &type, Qt::GestureState state) - : QObject(*new QGesturePrivate, parent) + : QObject(*new QGesturePrivate, parent), m_accept(0) { Q_D(QGesture); d->type = type; |