diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-03-20 16:35:53 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-11 14:51:45 (GMT) |
commit | 9fe44fba91199c9df4a10a118363168ffe3b6b0e (patch) | |
tree | c4b6549a9746927024b555b0c5ffe6d95a6342f3 | |
parent | 20afdd7120872cc3c52b34283a574370db71efab (diff) | |
download | Qt-9fe44fba91199c9df4a10a118363168ffe3b6b0e.zip Qt-9fe44fba91199c9df4a10a118363168ffe3b6b0e.tar.gz Qt-9fe44fba91199c9df4a10a118363168ffe3b6b0e.tar.bz2 |
Small rename of internal variable in gesture recognizer.
-rw-r--r-- | src/gui/kernel/qgesturestandardrecognizers.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/kernel/qgesturestandardrecognizers.cpp b/src/gui/kernel/qgesturestandardrecognizers.cpp index 04994cf..00b4a39 100644 --- a/src/gui/kernel/qgesturestandardrecognizers.cpp +++ b/src/gui/kernel/qgesturestandardrecognizers.cpp @@ -118,12 +118,12 @@ QGestureRecognizer::Result QGestureRecognizerPan::filterEvent(const QEvent *even const QMouseEvent *ev = static_cast<const QMouseEvent*>(event); lastPos = currentPos; currentPos = ev->pos(); - Qt::DirectionType direction = + Qt::DirectionType newDirection = simpleRecognizer.addPosition(ev->pos()).direction; - DEBUG() << "Pan: MouseMove: simplerecognizer result = " << direction; + DEBUG() << "Pan: MouseMove: simplerecognizer result = " << newDirection; QGestureRecognizer::Result result = QGestureRecognizer::NotGesture; if (currentDirection == Qt::NoDirection) { - if (direction == Qt::NoDirection) { + if (newDirection == Qt::NoDirection) { result = QGestureRecognizer::MaybeGesture; } else { result = QGestureRecognizer::GestureStarted; @@ -133,10 +133,10 @@ QGestureRecognizer::Result QGestureRecognizerPan::filterEvent(const QEvent *even result = QGestureRecognizer::GestureStarted; gestureState = Qt::GestureUpdated; } - if (direction != Qt::NoDirection) { - if (currentDirection != direction) + if (newDirection != Qt::NoDirection) { + if (currentDirection != newDirection) lastDirection = currentDirection; - currentDirection = direction; + currentDirection = newDirection; } return result; } |