Make "finger touch" not be a tablet
Otherwise QTouchDevices::devices() doesn't return the touchscreen on my Thinkpad Yoga 460 Change-Id: Ibb829df95f92152a77c512e4325522825901074e Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>bb10
parent
259adc5e77
commit
0cd15fd94d
|
|
@ -208,6 +208,8 @@ void QXcbConnection::xi2SetupDevices()
|
|||
isTablet = true;
|
||||
tabletData.pointerType = QTabletEvent::Cursor;
|
||||
dbgType = QLatin1String("cursor");
|
||||
} else if (name.contains("wacom") && name.contains("finger touch")) {
|
||||
isTablet = false;
|
||||
} else if ((name.contains("pen") || name.contains("stylus")) && isTablet) {
|
||||
tabletData.pointerType = QTabletEvent::Pen;
|
||||
dbgType = QLatin1String("pen");
|
||||
|
|
|
|||
Loading…
Reference in New Issue