summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qstandardgestures.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update licenseheader text in source filesJyri 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
* The lastCenterPoint should be equal to centerPoint for new gestures.Frederik Gladhorn2010-11-031-3/+5
| | | | Reviewed-by: Zeno Albisser
* PinchGesture: lastRotationAngle should start at 0.Frederik Gladhorn2010-11-031-1/+1
| | | | Reviewed-by: Zeno Albisser
* Simplify calculation of center point and scale for PinchRecongizerFrederik Gladhorn2010-10-251-11/+8
| | | | | | | | Constructing a QLineF to get at the centerPoint is not precise and can be done simpler. The scale factor can be assigned directly to d->scaleFactor instead of creating a temporary scaleFactor variable. Reviewed-by: Zeno Albisser
* fix scaleFactor/totalScaleFactor in QPinchGestureRecognizerZeno Albisser2010-09-131-5/+5
| | | | | | | The scaleFactor/totalScaleFactor should now represent a proper value to allow an object tracking a touchpoint during a Pinch Gesture. Reviewed-by: Frederik Gladhorn
* Changed the speed property on QSwipeGesture to velocityZeno Albisser2010-09-131-3/+3
| | | | Reviewed-by: Denis Dzyubenko
* Fix compilation with QT_NO_GRAPHICSVIEWTasuku Suzuki2010-07-211-0/+8
| | | | | Merge-request: 751 Reviewed-by: Bjørn Erik Nilsen <bjorn.nilsen@nokia.com>
* Change default TapAndHold timeout and make configurableThomas Zander2010-07-081-4/+3
| | | | | | | | The new default timeout is 700ms and is what Nokia Research found through usability studies. Nevertheless lets provide public API to set this through a platform plugin or similar. Reviewed-By: Denis
* Adapt the TapAndHold recognizer to non-touch tooThomas Zander2010-07-061-23/+40
| | | | | | | | The QTapAndHoldGestureRecognizer now can trigger also on mouse and GraphicsSceneMouse events and all of them will cause the gesture start event to be sent after the touch interval timed out. Reviewed-by: Denis
* Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into ↵Denis Dzyubenko2010-06-071-0/+4
|\ | | | | | | 4.7-staging1
| * Add a new qconfig feature GESTURESTasuku Suzuki2010-06-021-0/+4
| | | | | | | | | | Merge-request: 535 Reviewed-by: Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>
* | Added setting a hotspot on standard gesturesDenis Dzyubenko2010-06-071-0/+3
|/ | | | | | | | | In order for gestures to work in graphicsview the hotspot should be set. The fix adds the hotspot to standard gestures that are shipped with Qt. Task-number: QTBUG-10967 Task-number: QT-3406 Reviewed-by: trustme
* Port QtGui uses of QTime as a stopwatch to QTimestampThiago Macieira2010-03-171-4/+3
|
* Update copyright year to 2010Jason McDonald2010-01-061-1/+1
| | | | Reviewed-by: Trust Me
* Added a -no-native-gestures option for configure.exeDenis Dzyubenko2009-11-061-2/+1
| | | | | | | | 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
* Fixed pinching in the imagegestures example.Denis Dzyubenko2009-11-051-2/+6
| | | | | | | | | When the gesture finishes it might not necessery set the ScaleFactorChanged flag. Also fixed the touch-event based pinch gesture. Reviewed-by: trustme
* Implemented Tap and TapAndHold gestures.Denis Dzyubenko2009-11-051-0/+153
| | | | | | Added QGesture objects and gesture recognizers based on touch events. Reviewed-by: Bradley T. Hughes
* Improved pinch gesture.Denis Dzyubenko2009-11-051-1/+7
| | | | | | Made sure we emit the same values for the pinch gesture as on Mac. Reviewed-by: trustme
* Implemented QSwipeGesture recognizer using touch events.Denis Dzyubenko2009-11-051-4/+149
| | | | Reviewed-by: Bradley T. Hughes
* Compile fix after the last gesture api changeDenis Dzyubenko2009-11-031-2/+0
| | | | Reviewed-by: trustme
* Gesture api review.Denis Dzyubenko2009-11-031-32/+31
| | | | | | Changes to the gesture api after the review. Reviewed-by: Jasmin Blanchette
* Implemented pinch gesture recognizer.Denis Dzyubenko2009-11-031-75/+102
| | | | Reviewed-by: trustme
* Doc: Fixed qdoc warnings.David Boddie2009-10-261-1/+0
| | | | Reviewed-by: Trust Me
* Change API; the pan gesture now has points for distance, not size.Thomas Zander2009-10-221-6/+6
|
* A new implementation of the Gesture API.Denis Dzyubenko2009-10-091-670/+105
| | | | | | | Implemented gestures using gesture events and separate QGesture/QGestureRecognizer classes. Reviewed-by: trustme
* Doc: mark API of Gesture framework as preliminary.Volker Hilsheimer2009-10-021-0/+3
| | | | New API will most likely not be in the Beta release.
* Update license headers again.Jason McDonald2009-09-091-4/+4
| | | | Reviewed-by: Trust Me
* doc: Fixed several qdoc errors.Martin Smith2009-09-081-0/+6
| | | | That's the last of them... for now.
* Added a property to QPinchGesture to specify what exactly changed.Denis Dzyubenko2009-09-031-0/+16
| | | | | | | Added QPinchGesture::whatChanged() which specifies which property in the pinch gesture changed - the scale factor or rotation angle or both. Reviewed-by: Bradley T. Hughes
* Improved the gesture api.Denis Dzyubenko2009-09-031-30/+123
| | | | | | | | | | | | | | Made properties in QPanGesture and QPinchGesture more consistent - all of them have value, lastValue and totalValue. Documented that totalValue means the value from the beginning of the gesture, while the 'value' - from the beginning of the current sequence. This is especially useful on Windows when you zoom with two fingers and then release one finger and touch again to continue zooming. Also added a workaround for native Rotate gesture on Windows which contain a 'bad' value in the first WM_GESTURE message in every gesture sequence. Reviewed-by: Bradley T. Hughes
* Improved the gesture api.Denis Dzyubenko2009-09-031-26/+29
| | | | | | | | | | | Added a new widget attribute Qt::WA_DontUseStandardGestures that disables all implicit gestures (i.e. gestures that are automatically enabled by Qt itself). This change also changes the way gestures are handled on QAbstractScrollArea-based widgets on Windows - the gestures are supposed to be created on the viewport widget. Reviewed-by: Bradley T. Hughes
* Added simple manualtests for gesturesDenis Dzyubenko2009-09-031-0/+20
| | | | Reviewed-by: trustme
* Update tech preview license header for files that are new in 4.6.Jason McDonald2009-08-311-13/+13
| | | | Reviewed-by: Trust Me
* doc: Fixed several qdoc errors.Martin Smith2009-08-311-12/+48
|
* Gestures: Implement swipe gestureRichard Moe Gustavsen2009-08-271-0/+108
| | | | Note: if this fails building on any platform, talk to Denis!
* Gestures: make all screen points floatRichard Moe Gustavsen2009-08-271-7/+7
| | | | | | This is more in accordance with touch points, and graphics view Rev-By: Discussed with Denis and Brad
* Mac: Fix Imageviewer example, and bugfix gesturesRichard Moe Gustavsen2009-08-271-0/+2
| | | | Rev-By: denis
* Cocoa: implement pan gestures to follow mouseRichard Moe Gustavsen2009-08-271-12/+13
|
* Cocoa: Implement single touch panRichard Moe Gustavsen2009-08-271-40/+68
|
* Improved a QGesture api a little bit.Denis Dzyubenko2009-08-211-52/+40
| | | | | | | Changed the constructor of the QGesture to separate the gesture target (the object/widget that the gesture filters events for), and the parent object. Reviewed-by: Richard Moe Gustavsen
* Improved the QPanGesture implementation.Denis Dzyubenko2009-08-211-16/+18
| | | | | | | When Pan is implemented with touch events, make sure it pans only when two fingers are used. Reviewed-by: trustme
* Carbon and Cocoa: Adding support for standard gestures.Richard Moe Gustavsen2009-08-191-3/+15
|
* Update contact URL in license headers.Jason McDonald2009-08-121-1/+1
| | | | Reviewed-by: Trust Me
* Compile fix on Linux.hjk2009-08-101-4/+4
| | | | | | | Reviewed-by: brad The declaration of getQApplicationPrivateInternal was only available as 'friend' on Q_WS_WIN.
* Implemented QPinchGesture.Denis Dzyubenko2009-08-101-3/+207
| | | | | | | | | | | Added a new standard gesture, which is implemented using a native zoom and rotate gestures on Windows and with a direct touch event handling on other platforms. Improved pan support - we subscribe to native pan gesture only when it's really needed, and we pass proper flags for single finger horizontal/vertical panning. Reviewed-by: Richard Moe Gustavsen
* Compile fix for gestures.Denis Dzyubenko2009-08-061-5/+4
| | | | Reviewed-by: trustme
* Changed setting state in a QGestureDenis Dzyubenko2009-08-061-31/+12
| | | | | | | | | | | | Instead of having a protected setter for the state and forcing the application developer to emit signals manually (which leads to misunderstanding - i.e. if the started() signal should be emitted only once, or of the triggered() signal should be emitted before the finished() signal, etc). So I've added an protected updateState(state) function that sets the internal state and emits appropriate signals depending on the old and new states. Reviewed-by: Volker Hilsheimer Reviewed-by: Richard Moe Gustavsen
* Rearranged the gesture code a bit for future native gestures on Windows.Denis Dzyubenko2009-08-061-7/+15
| | | | | | | | Moved the code that subscribes to native gestures on Windows to a private function in QWidget which will check which gestures the widget is subscribed to and enable native gestures as requested. Reviewed-by: trustme
* Removed the startPos/lastPos/pos from the gesture classes.Denis Dzyubenko2009-08-041-43/+0
| | | | | | | | It doesn't make much sense to have that low-level info neither in the base QGesture class, nor in the QPanGesture, as the latter one has offset properties instead. Reviewed-by: trustme