summaryrefslogtreecommitdiff
path: root/examples/gestures
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-02 19:26:44 +0100
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-03 11:26:08 +0100
commit93e9bc06427c6a8e1b6d6f939cf53ae5c95e0827 (patch)
treeb4e677abcb3b69dc602e29fe113041895f1e0e5f /examples/gestures
parentcfcfae65778f2e1e7fc3936c66689e3685f1cc77 (diff)
downloadqt4-tools-93e9bc06427c6a8e1b6d6f939cf53ae5c95e0827.tar.gz
Gesture api review.
Changes to the gesture api after the review. Reviewed-by: Jasmin Blanchette
Diffstat (limited to 'examples/gestures')
-rw-r--r--examples/gestures/imagegestures/imagewidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/gestures/imagegestures/imagewidget.cpp b/examples/gestures/imagegestures/imagewidget.cpp
index c798fcc479..da9daaeb15 100644
--- a/examples/gestures/imagegestures/imagewidget.cpp
+++ b/examples/gestures/imagegestures/imagewidget.cpp
@@ -132,13 +132,13 @@ void ImageWidget::panTriggered(QPanGesture *gesture)
void ImageWidget::pinchTriggered(QPinchGesture *gesture)
{
- QPinchGesture::WhatChanged whatChanged = gesture->whatChanged();
- if (whatChanged & QPinchGesture::RotationAngleChanged) {
+ QPinchGesture::ChangeFlags changeFlags = gesture->changeFlags();
+ if (changeFlags & QPinchGesture::RotationAngleChanged) {
qreal value = gesture->property("rotationAngle").toReal();
qreal lastValue = gesture->property("lastRotationAngle").toReal();
rotationAngle += value - lastValue;
}
- if (whatChanged & QPinchGesture::ScaleFactorChanged) {
+ if (changeFlags & QPinchGesture::ScaleFactorChanged) {
qreal value = gesture->property("scaleFactor").toReal();
qreal lastValue = gesture->property("lastScaleFactor").toReal();
scaleFactor += value - lastValue;