summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowstabletsupport.h
diff options
context:
space:
mode:
authorArthur Krebsbach <Arthur.Krebsbach@Wacom.com>2013-10-08 08:51:23 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-14 15:05:55 +0200
commit17ebcd2b4690f73c8fd2332b0ba55b3ee3e2e8bb (patch)
treee996a20fb3860da0a20ce487476f50c8a1cdef3d /src/plugins/platforms/windows/qwindowstabletsupport.h
parentf86ffab4023dbba092c7abdf00242f17428d86f5 (diff)
Windows: Fix tablet position in relative (mouse) mode.
When in "mouse" or "relative" mode with the pen position information would not be calculated correctly resulting in a significant offset between the tablet pen location and the mouse cursor location. Logic was added to detect when the two were not in sync and use the mouse location when this happens. Change-Id: Icb7129e8cce186c0099953769e215649d9347c8e Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowstabletsupport.h')
-rw-r--r--src/plugins/platforms/windows/qwindowstabletsupport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowstabletsupport.h b/src/plugins/platforms/windows/qwindowstabletsupport.h
index 12f96b618d..5e29cd9554 100644
--- a/src/plugins/platforms/windows/qwindowstabletsupport.h
+++ b/src/plugins/platforms/windows/qwindowstabletsupport.h
@@ -134,6 +134,7 @@ private:
bool m_tiltSupport;
QVector<QWindowsTabletDeviceData> m_devices;
int m_currentDevice;
+ QPointF m_oldGlobalPosF;
};
QT_END_NAMESPACE