diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-23 10:48:51 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-23 10:48:51 (GMT) |
commit | 33173f93746aec7771ade4c7f508d52dc19a3d2d (patch) | |
tree | 3138ade49280172d222c8d94d8326e5577e26626 /src/gui/kernel/qapplication.cpp | |
parent | 5e21e9b357a51eb6b3fa349dccf63e33c621fc72 (diff) | |
parent | 68e72ecac7afda1569011d67df8f7f8e250c42f5 (diff) | |
download | Qt-33173f93746aec7771ade4c7f508d52dc19a3d2d.zip Qt-33173f93746aec7771ade4c7f508d52dc19a3d2d.tar.gz Qt-33173f93746aec7771ade4c7f508d52dc19a3d2d.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-multitouch
Conflicts:
src/gui/kernel/qapplication.cpp
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 4671ded..9a22fd5 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -5260,7 +5260,6 @@ void QApplicationPrivate::updateTouchPointsForWidget(QWidget *widget, QTouchEven rect.moveCenter(widget->mapFromGlobal(screenPos.toPoint()) + delta); touchPoint.setRect(rect); - touchPoint.setStartPos(widget->mapFromGlobal(touchPoint.startScreenPos().toPoint()) + delta); touchPoint.setLastPos(widget->mapFromGlobal(touchPoint.lastScreenPos().toPoint()) + delta); } @@ -5333,6 +5332,8 @@ void QApplicationPrivate::translateRawTouchEvent(QWidget *window, touchPoint.setLastScreenPos(touchPoint.screenPos()); touchPoint.setStartNormalizedPos(touchPoint.normalizedPos()); touchPoint.setLastNormalizedPos(touchPoint.normalizedPos()); + if (touchPoint.pressure() < qreal(0.)) + touchPoint.setPressure(qreal(1.)); d->appCurrentTouchPoints.insert(touchPoint.id(), touchPoint); break; } @@ -5347,6 +5348,8 @@ void QApplicationPrivate::translateRawTouchEvent(QWidget *window, touchPoint.setLastScreenPos(previousTouchPoint.screenPos()); touchPoint.setStartNormalizedPos(previousTouchPoint.startNormalizedPos()); touchPoint.setLastNormalizedPos(previousTouchPoint.normalizedPos()); + if (touchPoint.pressure() < qreal(0.)) + touchPoint.setPressure(qreal(0.)); break; } default: @@ -5359,6 +5362,8 @@ void QApplicationPrivate::translateRawTouchEvent(QWidget *window, touchPoint.setLastScreenPos(previousTouchPoint.screenPos()); touchPoint.setStartNormalizedPos(previousTouchPoint.startNormalizedPos()); touchPoint.setLastNormalizedPos(previousTouchPoint.normalizedPos()); + if (touchPoint.pressure() < qreal(0.)) + touchPoint.setPressure(qreal(0.)); d->appCurrentTouchPoints[touchPoint.id()] = touchPoint; break; } |