diff options
author | David Boddie <dboddie@trolltech.com> | 2009-11-04 18:49:16 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-11-04 18:49:16 (GMT) |
commit | 5980acde99d393010d7d713006e5d4c34d945cf7 (patch) | |
tree | 60bf55ba19e40d80c2b48adf319529c9e9876d06 /src/gui/kernel | |
parent | 7905101fb5ef18c776be515b9287356b1efc5ceb (diff) | |
parent | c1eae9d5842c73719d7719cccc4beca55711714d (diff) | |
download | Qt-5980acde99d393010d7d713006e5d4c34d945cf7.zip Qt-5980acde99d393010d7d713006e5d4c34d945cf7.tar.gz Qt-5980acde99d393010d7d713006e5d4c34d945cf7.tar.bz2 |
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-doc-team into 4.6
Conflicts:
src/gui/kernel/qevent.cpp
src/gui/kernel/qgesture.cpp
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qevent.cpp | 6 | ||||
-rw-r--r-- | src/gui/kernel/qgesture.cpp | 21 |
2 files changed, 18 insertions, 9 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index bcebe06..ad68aea 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -4345,9 +4345,9 @@ bool QGestureEvent::isAccepted(QGesture *gesture) const Sets the accept flag of the given \a gestureType object to the specified \a value. - Setting the accept flag indicates that the event receiver wants the gesture - of type \a gestureType. Unwanted gestures may be propagated to the parent - widget. + Setting the accept flag indicates that the event receiver wants to receive + gestures of the specified type, \a gestureType. Unwanted gestures may be + propagated to the parent widget. By default, gestures in events of type QEvent::Gesture are accepted, and gestures in QEvent::GestureOverride events are ignored. diff --git a/src/gui/kernel/qgesture.cpp b/src/gui/kernel/qgesture.cpp index e322af2..4edf8a9 100644 --- a/src/gui/kernel/qgesture.cpp +++ b/src/gui/kernel/qgesture.cpp @@ -174,6 +174,16 @@ void QGesture::unsetHotSpot() } /*! + \property QGesture::gestureCancelPolicy + \brief the policy for deciding what happens on accepting a gesture + + On accepting one gesture Qt can automatically cancel other gestures + that belong to other targets. The policy is normally set to not cancel + any other gestures and can be set to cancel all active gestures in the + context. For example for all child widgets. +*/ + +/*! \enum QGesture::GestureCancelPolicy This enum describes how accepting a gesture can cancel other gestures @@ -210,13 +220,12 @@ QGesture::GestureCancelPolicy QGesture::gestureCancelPolicy() const */ /*! - \property QGesture::gestureCancelPolicy - \brief the policy for deciding what happens on accepting a gesture + \property QPanGesture::totalOffset + \brief the total offset from the first input position to the current input + position - On accepting one gesture Qt can automatically cancel other gestures - that belong to other targets. The policy is normally set to not cancel - any other gestures and can be set to cancel all active gestures in the - context. For example for all child widgets. + The total offset measures the total change in position of the user's input + covered by the gesture on the input device. */ /*! |