diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-15 15:01:12 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-15 15:01:12 (GMT) |
commit | 3d8150520f0184478c3d83fe19d33e89e46a4e3c (patch) | |
tree | 19faddae550fbb0cafb4eebaa2ab51a44be6cd0c /src/gui/kernel/qapplication.cpp | |
parent | c4f2638cda0cf4b64b3d239aaab695418ee14b86 (diff) | |
download | Qt-3d8150520f0184478c3d83fe19d33e89e46a4e3c.zip Qt-3d8150520f0184478c3d83fe19d33e89e46a4e3c.tar.gz Qt-3d8150520f0184478c3d83fe19d33e89e46a4e3c.tar.bz2 |
Make QTouchEvent::TouchPoint scene coordinate functions return screen coordinates for widgets
Previously these returned empty/invalid values.
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index fcc8d30..5269841 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -5358,6 +5358,11 @@ bool QApplicationPrivate::translateRawTouchEvent(QWidget *window, } Q_ASSERT(widget != 0); + // make the *scene* functions return the same as the *screen* functions + touchPoint.setSceneRect(touchPoint.screenRect()); + touchPoint.setStartScenePos(touchPoint.startScreenPos()); + touchPoint.setLastScenePos(touchPoint.lastScreenPos()); + StatesAndTouchPoints &maskAndPoints = widgetsNeedingEvents[widget]; maskAndPoints.first |= touchPoint.state(); maskAndPoints.second.append(touchPoint); |