summaryrefslogtreecommitdiffstats
path: root/tests/auto/gestures
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year in Digia's license headersSergio Ahumada2013-01-131-1/+1
| | | | | | Change-Id: I52bf8ef0447b701b4ebf7d7d240013a72adb9425 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-291-24/+24
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I280c0a575987d1770e354b4948f1d4d767d711ea Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Update contact information in license headers.Sergio Ahumada2012-08-011-2/+2
| | | | | | | | | | | | | - Replace Nokia contact email address with Qt Project website. - Remove "All rights reserved" line from license headers. As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie7ba62011752fcb149b99b26317c54f2a0cfa931 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Update year in Nokia copyright messages.Jason McDonald2012-01-111-1/+1
| | | | | | | | | Simple search and replace. This commit doesn't touch 3rd-party files, nor translations (where the change is not so simple and will be handled in a separate commit). Change-Id: I4e48513b8078a44a8cd272326685b25338890148 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Merge remote-tracking branch 'qt/4.8'Jyri Tahtela2011-05-181-6/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/src/examples/wheel.qdoc src/gui/util/qflickgesture.cpp src/gui/util/qflickgesture_p.h src/gui/util/qscroller.cpp src/gui/util/qscroller.h src/gui/util/qscroller_p.h src/gui/util/qscrollerproperties.cpp src/gui/util/qscrollerproperties.h tests/auto/qscroller/tst_qscroller.cpp
| * Remove Q_ASSERT in gestures autotestJason McDonald2011-05-051-4/+12
| | | | | | | | | | | | | | | | | | | | Rather than aborting on a bad gesture event in debug builds and ignoring the error in release builds, record a count of bad events and fail the test if the count is non-zero at the end of the test function. Change-Id: I6ddd46a5a656185c13eae4bbbb496b986a0c92f6 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
| * Remove Q_ASSERT calls from gestures autotestJason McDonald2011-04-191-2/+2
| | | | | | | | | | | | | | | | | | | | Make the test report a useful warning, rather than terminating with an unintelligible assertion failure, if the GestureState enum is ever extended. Change-Id: Ib876a5f2986cbea4e181678a83a72e0d1444f1ee Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
| * Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
| | | | | | | | Reviewed-by: Trust Me
* | Update licenseheader text in source files for qt4.8Jyri Tahtela2011-05-131-17/+17
| | | | | | | | | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* | Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
|/ | | | Reviewed-by: Trust Me
* Fixed QGesture autotest for QGesture lazy deletion.Dominik Holland2010-11-151-1/+3
| | | | Reviewed By: Trust Me
* Add test: assert when gesture is never accepted.Frederik Gladhorn2010-09-141-0/+26
| | | | Test for Qt-Bug 13501.
* Fixed delivering gestures to a toplevel widget.Denis Dzyubenko2010-08-241-0/+5
| | | | | | | | If there is only one widget which is a toplevel, then gestures were not delivered to it because we assumed (wrong) that there is at least one child widget. Reviewed-by: Frederik Gladhorn
* Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into ↵Denis Dzyubenko2010-06-071-0/+166
|\ | | | | | | 4.7-staging1
| * Fix a corner case where a gesture sometimes doesn't start.Thomas Zander2010-06-021-0/+166
| | | | | | | | | | | | | | | | | | | | | | | | gestures are re-used per widget / recognizer and in the case of a gesture getting cancelled we sometimes didn't properly 'start' the gesture on new incoming events since the manager forgot to mark it as not running. Add a test case and a one line fix. Reviewed-by: Denis Task-number: QTBUG-11076
* | Fixed GestureOverride event delivery in GraphicsView.Denis Dzyubenko2010-06-071-0/+66
|/ | | | | | | | GestureOverride event was not respected when delivering to items in GraphicsView. Task-number: QTBUG-10745 Reviewed-by: Thomas Zander
* Gestures in GraphicsView do not require a viewport to subscribe to gestures.Denis Dzyubenko2010-05-181-17/+66
| | | | | | | | | When a graphicsitem subscribes to a gesture the viewport is implicitly subscribed to it as well. Task-number: QTBUG-9849 Reviewed-by: Olivier Goffart Reviewed-by: Mikko Harju
* Fixes a crash in QGestureManager when unregistering recognizers.Denis Dzyubenko2010-05-031-0/+71
| | | | | Task-number: QTBUG-9801 Reviewed-by: Thomas Zander
* Extended gesture autotest.Denis Dzyubenko2010-03-011-0/+53
| | | | | | | | Make sure partial gestures do not propagate further if an item that expects partial gestures received it. Task-number: resulted from QTBUG-6876 Reviewed-by: trustme
* Fixed coordinate system conversion for gestures.Denis Dzyubenko2010-03-011-3/+42
| | | | | | | | | When converting hotspot position (which is in global coordinates) to graphics scene coordinates we should use the viewport because the mapToScene() takes a position in a viewport. Task-number: related to QTBUG-6876 Reviewed-by: Thomas Zander
* Improved gesture event delivery in graphicsview.Denis Dzyubenko2010-02-241-3/+136
| | | | | | | | | Made it possible to delete a gesture target from a gesture event handler. It is still not possible to delete some items (like an item that originated the gesture, i.e. that that the event that triggered the gesture to start), and in that case deleteLater() should be used. Reviewed-by: Andreas Aardal Hanssen
* Fixed a gesture autotest.Denis Dzyubenko2010-02-241-1/+1
| | | | Reviewed-by: trustme
* Fix bad conflict resolution from 4baa9dfb5273d7b501dcb3f456983262c53cc8d1Thiago Macieira2010-02-191-0/+24
| | | | Reviewed-by: Denis Dzyubenko
* Merge remote branch 'origin/master' into qt-master-from-4.6Thiago Macieira2010-02-181-0/+62
|\ | | | | | | | | | | Conflicts: src/corelib/codecs/qtextcodec.h tests/auto/gestures/tst_gestures.cpp
| * Added a new flag to fine-tune gesture propagation policyDenis Dzyubenko2010-02-171-0/+86
| | | | | | | | | | | | | | | | | | | | When a graphicsobject subscribes to a gesture using the IgnoredGesturesPropagateToParent flag, normal propagation rules do not apply to the gesture, and instead all gestures of the given type that are started over the item will propagate to parent items only. Task-number: QTBUG-7400 Reviewed-by: Andreas
* | Implemented GraphicsView Panel support for gestures.Denis Dzyubenko2010-02-121-2/+169
|/ | | | | | | | | Events should not propagate outside the panel. Also when delivering gesture events we should respect panels modality. Task-number: QTBUG-7451 Reviewed-by: Mikko Harju Reviewed-by: Bradley T. Hughes
* Update copyright year to 2010Jason McDonald2010-01-061-1/+1
| | | | Reviewed-by: Trust Me
* 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