diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-03 10:29:24 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-03 10:29:24 (GMT) |
commit | b93e3a34402aadc9d313fe64e18d7373cd50612c (patch) | |
tree | 30c74be85c3ba869998ffb12cbdbf59c724ad46d /src/gui/kernel/qevent.cpp | |
parent | c8226762c4fe9ca4c98114a4bf6d88adc44bc2fb (diff) | |
download | Qt-b93e3a34402aadc9d313fe64e18d7373cd50612c.zip Qt-b93e3a34402aadc9d313fe64e18d7373cd50612c.tar.gz Qt-b93e3a34402aadc9d313fe64e18d7373cd50612c.tar.bz2 |
Add support for touch point contact area
Add QTouchEvent::TouchPoint::area() and implement support for it on Windows
Diffstat (limited to 'src/gui/kernel/qevent.cpp')
-rw-r--r-- | src/gui/kernel/qevent.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 7a4c424..2692e82 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -3900,6 +3900,20 @@ void QTouchEvent::TouchPoint::setLastScreenPos(const QPointF &lastScreenPos) } /*! + Returns the area of this touch point. +*/ +QSizeF QTouchEvent::TouchPoint::area() const +{ + return d->area; +} + +/*! \internal */ +void QTouchEvent::TouchPoint::setArea(const QSizeF &area) +{ + d->area = area; +} + +/*! Returns the pressure of this touch point. The return value is in the range 0.0 to 1.0. */ |