summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesturemanager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reset gesture when in MayBeGesture state.Denis Dzyubenko2010-06-021-2/+6
| | | | | | | | When a gesture recognizer switches from MayBeGesture to Cancelled gesture we need to reset the state of the recognizer, but do not send any events to the user. Reviewed-by: Thomas Zander
* Removed the "maybe" timer from gesturemanager.Denis Dzyubenko2010-05-181-36/+6
| | | | | | | | | | | According to users of the api "maybe" timer (that is supposed to cancel gestures that have stayed in the "MaybeGesture" state for too long) is not useful and might even harm some gestures, so removing it completely and leaving it up to the author of a gesture recognizer to make sure the state machine is implemented properly. Task-number: QTBUG-9926 Reviewed-by: Thomas Zander
* Fixes a crash and a memory leak in gesturemanager.Denis Dzyubenko2010-05-181-1/+3
| | | | | | | | need to remove a QGesture object pointer from an internal hash when the widget/graphicsobject gets destroyed. Task-number: QTBUG-9801 Reviewed-by: Thomas Zander
* Fixes a crash in QGestureManagerDenis Dzyubenko2010-05-051-0/+3
| | | | | | | | Work around the case when we reach QGestureManager indirectly from QGraphicsObject destructor. Task-number: QT-3262 Reviewed-by: Thomas Zander
* Fixes a crash when unregistering a recognizer.Denis Dzyubenko2010-05-051-4/+12
| | | | | | | | | | | Another fix for the same problem - we also need to be careful - when ungrabbing a gesture for the recognizer that has already been destroyed and cleaning up the QGesture object for it we need to make sure we know it is removed from the obsolete gestures list so that we won't delete it again in the QGestureManager detructor. Task-number: QTBUG-9801 Reviewed-by: Thomas Zander
* Fixes a crash in QGestureManager when unregistering recognizers.Denis Dzyubenko2010-05-031-10/+10
| | | | | Task-number: QTBUG-9801 Reviewed-by: Thomas Zander
* Dont use gestures if there is no touch screen.Denis Dzyubenko2010-03-041-1/+3
| | | | | | | | | If there is no touch input device attached on Windows7, we shouldn't even bother subscribing to native gesture events. Task-number: QTBUG-6007 Reviewed-by: Thierry Reviewed-by: Prasanth
* Fixes a crash when destroying and creating QApplication.Denis Dzyubenko2010-01-071-9/+0
| | | | | | | | Moved the gestureManager pointer to a QApplicationPrivate to make sure if QApplication object is destroyed, QGestureManager pointer is set to zero. Task-number: QTBUG-7029 Reviewed-by: Thiago
* Update copyright year to 2010Jason McDonald2010-01-061-1/+1
| | | | Reviewed-by: Trust Me
* Optimisations to gesture event filtering.Denis Dzyubenko2009-12-151-20/+22
| | | | | | | Now we don't filter some events through the gesture manager and use QMap instead of QHash, which seem to be a bit faster in our cases. Reviewed-by: Olivier Goffart
* Merge commit 'widget/4.6' into oslo-staging-2/4.6Olivier Goffart2009-11-111-0/+1
|\ | | | | | | | | Conflicts: src/gui/painting/qbrush.cpp
| * Fix warningsThierry Bastian2009-11-091-0/+1
| | | | | | | | Reviewed-by: Trust Me
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Bradley T. Hughes2009-11-091-0/+2
|\ \ | |/ | | | | | | Conflicts: src/gui/kernel/qwidget_win.cpp
| * Merge branch 'feature' into 4.6Jørgen Lind2009-11-061-0/+2
| |\
| | * Fix QT_NO_GRAPHICSVIEWJørgen Lind2009-11-061-0/+2
| | | | | | | | | | | | Reviewed-by: paul
* | | Added a -no-native-gestures option for configure.exeDenis Dzyubenko2009-11-061-1/+3
|/ / | | | | | | | | | | | | | | The option allows to disable native Windows7 gestures since they require the creation of the native window handle. This partially disabled alien widgets concept and make window resizing slower and more flickery. Reviewed-by: Espen Riskedal
* | Implemented Tap and TapAndHold gestures.Denis Dzyubenko2009-11-051-1/+4
| | | | | | | | | | | | Added QGesture objects and gesture recognizers based on touch events. Reviewed-by: Bradley T. Hughes
* | Implemented QSwipeGesture recognizer using touch events.Denis Dzyubenko2009-11-051-0/+1
|/ | | | Reviewed-by: Bradley T. Hughes
* Merge commit '51c9b68' into 4.6Morten Johan Sørvig2009-11-041-38/+58
|\ | | | | | | | | | | Conflicts: dist/changes-4.6.0 src/gui/kernel/qevent.h
| * Gesture api review.Denis Dzyubenko2009-11-031-17/+27
| | | | | | | | | | | | Changes to the gesture api after the review. Reviewed-by: Jasmin Blanchette
| * Modified gesture events propagation.Denis Dzyubenko2009-11-031-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | By default if the gesture is ignored, only gestures in the started state are propagated, and accepting a gesture in the started state adds an implicit grab meaning all the following events in the gesture sequence will be delivered to that widget. This is similar to the way QTouchEvent is propagated. Also added a hint, which specifies if gestures in any state can be propagated to the widget which has enabled the hint. Reviewed-by: Thomas Zander
| * Made native Pan gesture work on Windows.Denis Dzyubenko2009-11-031-0/+6
| | | | | | | | Reviewed-by: trustme
| * Implemented pinch gesture recognizer.Denis Dzyubenko2009-11-031-0/+1
| | | | | | | | Reviewed-by: trustme
| * Make GestureCancelPolicy work for graphicsviewThomas Zander2009-10-301-22/+15
| | | | | | | | Reviewed-By: Denis
* | Merge commit 'origin/4.6' into featureJørgen Lind2009-11-021-74/+216
|\ \ | |/
| * Replaced QMap with QHash where possible in the gesture manager implementation.Denis Dzyubenko2009-10-281-9/+9
| | | | | | | | | | | | There is no reason to use QMap when the key is a pointer. Reviewed-by: Thomas Zander
| * Delete all gesture objects and recognizers when gesture manager is deleted.Denis Dzyubenko2009-10-281-0/+5
| | | | | | | | | | | | | | When application closes and we haven't deleted the unregistered gestures and gesture recognizer, we should delete them. Reviewed-by: Thomas Zander
| * Fixed the gesture event filtering through multiple gesture recognizers.Denis Dzyubenko2009-10-281-23/+26
| | | | | | | | | | | | | | | | | | When there are several gesture recognizers registered for the same gesture type, we need to know which recognizer we need to get a state object for since those QGesture objects are tied to the recognizer that created them. Reviewed-by: Thomas Zander
| * Rename private member variables to begin with m_Thomas Zander2009-10-281-58/+58
| | | | | | | | Reviewed-By: TrustMe
| * Introduce QGesture::GestureCancelPolicy, a way to auto-cancel gesturesThomas Zander2009-10-281-4/+81
| | | | | | | | | | | | | | | | | | 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. Reviewed-By: Denis Dzyubenko
| * Implemented QGestureRecognizer::ConsumeEventHintDenis Dzyubenko2009-10-271-2/+4
| | | | | | | | Reviewed-By: trustme
| * Fix the debug output to be correct again after refactoringThomas Zander2009-10-261-7/+7
| | | | | | | | Reviewed-by: Denis Dzyubenko
| * Fix memory leaks in the gesture managerThomas Zander2009-10-261-1/+2
| | | | | | | | Reviewed-by: Denis Dzyubenko
| * Add QWidget::ungrabGestureThomas Zander2009-10-261-0/+16
| | | | | | | | Reviewed-by: Denis Dzyubenko
| * Implement QApplication::unregisterGestureRecognizerThomas Zander2009-10-261-3/+39
| | | | | | | | Reviewed-by: Denis Dzyubenko
| * Optimisation for filtering events for gestures in graphics view.Denis Dzyubenko2009-10-261-1/+3
| | | | | | | | | | | | | | | | We shouldn't add several graphicsobject contexts for the same gesture type when looking for the gesture-enabled QGraphicsObject under a hotspot. Reviewed-by: Thomas Zander
* | Fix GRAPHICSVIEWJørgen Lind2009-10-291-0/+2
|/ | | | Reviewed-by: tom
* Make warning more helpful.Thomas Zander2009-10-221-1/+1
| | | | Also fix grammer and avoid using combined words.
* Fix for the gestures autotest.Denis Dzyubenko2009-10-221-1/+2
| | | | Reviewed-by: trustme
* Improvements for gesture event deliveryDenis Dzyubenko2009-10-221-9/+19
| | | | | | | | | When delivering GestureOverride events by default both the event and individual gestures will be ignored. We also store the acceptance state of individual gesture in the event and not in the gesture object, along with its target. Reviewed-by: Thomas Zander
* Improving gesture event delivery for widgets.Denis Dzyubenko2009-10-221-77/+137
| | | | Reviewed-by: trustme
* Fixed gesture event delivery when several gestures are triggered.Denis Dzyubenko2009-10-221-22/+19
| | | | | | | | When there are two different gestures are being triggered and they are supposed to be sent to different widgets, don't stop event "propagation" when the first event is successfully delivered. Reviewed-by: trustme
* Improved gesture event filtering inside QGraphicsView for QGraphicObjectsDenis Dzyubenko2009-10-221-109/+117
| | | | Reviewed-by: trustme
* Mac: implement gestures conforming to the new APIRichard Moe Gustavsen2009-10-131-0/+12
|
* Added support for singleshot gestures.Denis Dzyubenko2009-10-121-2/+4
| | | | | | | | | When a gesture recognizer claims to be in Finished state without any Triggered states before, that probably means that was a singleshot gesture that has started and ended right away, so we'll send a fake gesture in the GestureStarted state. Reviewed-by: trustme
* A new implementation of the Gesture API.Denis Dzyubenko2009-10-091-0/+453
Implemented gestures using gesture events and separate QGesture/QGestureRecognizer classes. Reviewed-by: trustme