summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowstabletsupport.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2014-02-26 15:02:30 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-27 13:28:23 +0100
commitcebdd91f8bbebf43fd2ec3c4dd2f49f46172d47e (patch)
tree3f5a2401b2fabdfcaa7a7c9c2b09055bb35bdc8f /src/plugins/platforms/windows/qwindowstabletsupport.h
parentbbc4cc4a47bb96c8cb85b6f0dd607020e74f3e2c (diff)
Windows: Add platform plugin parameter for tablet absolute range.
Make the range for detecting relative (mouse mode) configureable using -platform windows:tabletabsoluterange=50 Task-number: QTBUG-36937 Change-Id: I44f928e53cb41b246c44554ec7f71bfbdf03c147 Reviewed-by: Arthur Krebsbach <Arthur.Krebsbach@Wacom.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com> Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowstabletsupport.h')
-rw-r--r--src/plugins/platforms/windows/qwindowstabletsupport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowstabletsupport.h b/src/plugins/platforms/windows/qwindowstabletsupport.h
index 5e29cd9554..527d9dbf37 100644
--- a/src/plugins/platforms/windows/qwindowstabletsupport.h
+++ b/src/plugins/platforms/windows/qwindowstabletsupport.h
@@ -124,6 +124,9 @@ public:
bool translateTabletProximityEvent(WPARAM wParam, LPARAM lParam);
bool translateTabletPacketEvent();
+ int absoluteRange() const { return m_absoluteRange; }
+ void setAbsoluteRange(int a) { m_absoluteRange = a; }
+
private:
unsigned options() const;
QWindowsTabletDeviceData tabletInit(const quint64 uniqueId, const UINT cursorType) const;
@@ -131,6 +134,7 @@ private:
static QWindowsWinTab32DLL m_winTab32DLL;
const HWND m_window;
const HCTX m_context;
+ int m_absoluteRange;
bool m_tiltSupport;
QVector<QWindowsTabletDeviceData> m_devices;
int m_currentDevice;