summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qstandardgestures.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Removed the QTapAndHoldGestureDenis Dzyubenko2009-08-041-85/+16
| | | | | | | | Moved the gesture implementation to the imageviewer example as it cannot be fully implemented in a crossplatform way - for example on Windows tap and hold is a system gesture that is transparent to the application. Reviewed-by: trustme
* Moved the native window gesture handling code to the right place.Denis Dzyubenko2009-08-041-19/+105
|
* fix warning on MSVCThierry Bastian2009-08-041-2/+1
|
* Add support for pan gesture on mac (carbon and cocoa)Richard Moe Gustavsen2009-08-041-0/+64
|
* Refactored gesture apiDenis Dzyubenko2009-07-021-0/+254
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.