summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtouchevent
Commit message (Collapse)AuthorAgeFilesLines
* Fix license headers after multitouch+gestures merge.Jason McDonald2009-06-291-5/+5
| | | | | | | Commercial license headers belong in source packages only. The repo must have the pre-release license headers. Reviewed-by: Trust Me
* Fix old/missing license headers from multitouch+gestures merge.Jason McDonald2009-06-291-2/+2
| | | | Reviewed-by: Trust Me
* Add tests for multiple touch points on TouchScreen and TouchPad devicesBradley T. Hughes2009-06-251-9/+434
| | | | | | Add 2 basic tests that, when faced with multiple touch points, make sure we send multiple touch events on TouchScreen devices, but only one event on TouchPads.
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-multitouchBradley T. Hughes2009-06-241-3/+3
|\
| * Fix pressure "emulation"Bradley T. Hughes2009-06-241-3/+3
| | | | | | | | | | Update the auto test for QTouchEvent to make sure the pressure is set to 1 for Pressed/Moved/Stationary, but for 0 for Released.
* | Add QTouchEvent::DeviceType and deviceType()Bradley T. Hughes2009-06-241-6/+27
|/ | | | | | | | | This enum indicates what kind of device generated the touch event (TouchScreen or TouchPad). We use this information to control how touch events are sent, specifically we restrict touch events to a single widget/QGraphicsItem on touch-pads, since there is no direct relationship between the physical touch location on the pad and the on- using the touch-pad).
* Add functions to report normalized positions in QTouchEvent::TouchPointBradley T. Hughes2009-06-231-0/+16
| | | | | | | | | This introduces normalizedPos(), startNormalizedPos(), and lastNormalizedPos() in QTouchEvent::TouchPoint, and must be set by the implementation before being fed into Qt. We are assuming and hoping that these functions will make it easier to implement certain types of gestures (especially on a touchpad).
* Move with window to a position that is not 0,0 in the raw testBradley T. Hughes2009-06-191-0/+1
| | | | | | That way the widget local positions will not be the same as the screen coordinates. (I missed a bug in QTouchEvent::TouchPoint because of this coincidence in the test).
* compile after small API changesBradley T. Hughes2009-06-181-11/+6
|
* Make QTouchEvent::TouchPoint scene coordinate functions return screen ↵Bradley T. Hughes2009-06-151-0/+12
| | | | | | coordinates for widgets Previously these returned empty/invalid values.
* remove duplicated code and API (merge QTouchEvent and QGraphicsSceneTouchEvent)Bradley T. Hughes2009-06-111-16/+19
| | | | | | | | | the API for these 2 classes is identical, the implementation is almost identical, they share the same data structures, so bite the bullet and merge them. this means we go back to using screenPos() instead of globalPos() again
* don't reset the touch widget in the basicRawEventTranslation() testBradley T. Hughes2009-06-081-5/+3
|
* test basic raw event translationBradley T. Hughes2009-06-081-0/+87
| | | | | this makes sure that we get the proper start/last position maintenance and global->local translation.
* test that TouchBegin events propagate through widgets with ↵Bradley T. Hughes2009-06-081-0/+15
| | | | Qt::WA_AcceptTouchEvents
* Send the TouchEnd event with Qt::TouchPointReleased maskBradley T. Hughes2009-06-081-1/+1
| | | | | The mask isn't used and changing it doesn't do anything, so this is just a cosmetic/clarification change.
* test that QEvent::TouchUpdate and TouchEnd never propagateBradley T. Hughes2009-06-081-2/+49
|
* add test for TouchBegin propagationBradley T. Hughes2009-06-081-0/+53
|
* add tst_QTouchEventWidget to handle touch eventsBradley T. Hughes2009-06-081-2/+33
| | | | | test that sending the TouchBegin to this widget both succeeds and accepts the event
* make QTouchEvent autotest passBradley T. Hughes2009-06-081-5/+5
| | | | the event is accepted by default, but no handled
* add a autotest for touch eventsBradley T. Hughes2009-06-082-0/+97
start off by testing basic behavior: 1. touch events are disabled by default 2. touch events are automatically accepted when enabled