summaryrefslogtreecommitdiffstats
path: root/tests/auto/gestures
Commit message (Collapse)AuthorAgeFilesLines
* Gesture api review.Denis Dzyubenko2009-11-031-106/+106
| | | | | | Changes to the gesture api after the review. Reviewed-by: Jasmin Blanchette
* Modified gesture events propagation.Denis Dzyubenko2009-11-031-25/+96
| | | | | | | | | | | | | 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
* Fix unit test and add autoCancel test for graphicsviewThomas Zander2009-10-301-26/+72
|
* Follow refactor; use QApplication:: instead of qApp->Thomas Zander2009-10-281-23/+23
| | | | | Our tests now call the recently converted registerRecognizer using a proper static method.
* Introduce QGesture::GestureCancelPolicy, a way to auto-cancel gesturesThomas Zander2009-10-281-0/+62
| | | | | | | | | 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
* add empty test method, should implement it fully when more important things ↵Thomas Zander2009-10-281-0/+16
| | | | are done
* Implemented QGestureRecognizer::ConsumeEventHintDenis Dzyubenko2009-10-271-1/+20
| | | | Reviewed-By: trustme
* Improved gesture autotest reliability on X11.Denis Dzyubenko2009-10-271-0/+5
| | | | Reviewed-by: trustme
* Add QWidget::ungrabGestureThomas Zander2009-10-261-0/+71
| | | | Reviewed-by: Denis Dzyubenko
* Unregister the temporary gesture recognizer in the gestures autotest.Denis Dzyubenko2009-10-261-0/+15
| | | | Reviewed-by: trustme
* Implemented gesture event delivery and propagation inside QGraphicsView.Denis Dzyubenko2009-10-221-20/+114
| | | | Reviewed-by: Thomas Zander
* Add QGestureEvent::mapToScene for better graphicsView integrationThomas Zander2009-10-221-0/+26
|
* Fix for the gestures autotest.Denis Dzyubenko2009-10-221-8/+6
| | | | Reviewed-by: trustme
* Improvements for gesture event deliveryDenis Dzyubenko2009-10-221-2/+64
| | | | | | | | | 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-8/+176
| | | | Reviewed-by: trustme
* Fixed gesture event delivery when several gestures are triggered.Denis Dzyubenko2009-10-221-6/+39
| | | | | | | | 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-55/+160
| | | | Reviewed-by: trustme
* Extended an autotest for gestures.Denis Dzyubenko2009-10-221-0/+56
| | | | | | | | Make sure that when a gesture recognizer explicitely sets the targetObject to a QGraphicsObject, we deliver it only to the object and will not try to propagate. Reviewed-by: trustme
* Added support for singleshot gestures.Denis Dzyubenko2009-10-121-7/+10
| | | | | | | | | 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-092-0/+630
| | | | | | | Implemented gestures using gesture events and separate QGesture/QGestureRecognizer classes. Reviewed-by: trustme
* Removed the obsolete gestures autotestDenis Dzyubenko2009-08-314-1401/+0
| | | | | | Oops, forgot to remove the autotest after rewriting the gestures api. Reviewed-by: trustme
* Update tech preview license header for files that are new in 4.6.Jason McDonald2009-08-313-39/+39
| | | | Reviewed-by: Trust Me
* Fix some missing and duplicated license headers.Jason McDonald2009-08-271-0/+41
| | | | Reviewed-by: Trust Me
* Make the license test pass.Frans Englich2009-08-191-0/+41
| | | | | | | This is partly done to address a review comment for S60. Reviewed-by: Marius SO Reviewed-by: Paul
* Update contact URL in license headers.Jason McDonald2009-08-121-1/+1
| | | | Reviewed-by: Trust Me
* Refactored gesture apiDenis Dzyubenko2009-07-021-8/+21
| | | | | | | | | | | | | | | | Rewritten the api almost from scratch, making it simplier and more flexible at the same time. The current implementation will not have complex gseturemanager class inside Qt, but the QGesture base class, which represents both a gesture recognizer and a gesture itself with a set of properties. A set of common gestures that can use used in third-party applications (and in Qt itself internally) is supposed to be found in qstandardgestures.h, and a base class for user-defined gestures is in qgesture.h Gesture implementation for Pan on Windows7 has also been added as a reference implementation for platform gestures.
* Fix old/missing license headers from multitouch+gestures merge.Jason McDonald2009-06-291-2/+2
| | | | Reviewed-by: Trust Me
* Compile fix after the multitouch api review.Denis Dzyubenko2009-06-152-14/+14
|
* Gesture autotest improvementsDenis Dzyubenko2009-06-152-11/+70
|
* Improved touch event emulation code in testlib.Denis Dzyubenko2009-06-031-1/+52
| | | | | | | | * Added a context for the touch positions in press(), move(), release() functions. * Sending RawTouch events to QApplication object if the target widget is not specified.
* Added pan gesture to the gesture autotestDenis Dzyubenko2009-06-033-5/+115
|
* Moved the QTest::touchEvent() implementation to testlib.Denis Dzyubenko2009-06-031-104/+0
| | | | Modified it the same time to remove refcount and static variable.
* Simplified emulating touch events by using RawTouch event.Denis Dzyubenko2009-06-031-25/+16
|
* Added api for emulating touch events.Denis Dzyubenko2009-05-271-3/+182
| | | | | For now the api is in the autotest itself, though in the QTest namespace.
* Added simple autotest for gestures when there are overlapping graphicsitemsDenis Dzyubenko2009-05-271-3/+59
|
* Added a simple test for gesture event delivery to graphicsitemsDenis Dzyubenko2009-05-203-4/+143
|
* Started implementing tests for gestures on graphicsviewDenis Dzyubenko2009-05-201-114/+197
|
* Added autotest for gestures.Denis Dzyubenko2009-05-184-0/+742