summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-06-03 10:29:24 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-06-03 10:29:24 (GMT)
commitb93e3a34402aadc9d313fe64e18d7373cd50612c (patch)
tree30c74be85c3ba869998ffb12cbdbf59c724ad46d /src/gui/kernel/qevent.cpp
parentc8226762c4fe9ca4c98114a4bf6d88adc44bc2fb (diff)
downloadQt-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.cpp14
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.
*/