summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/devicediscovery/qdevicediscovery_static.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-06-01 10:36:51 +0300
committerQt by Nokia <qt-info@nokia.com>2012-06-04 22:29:10 +0200
commitbc3cfebc66a046e0c6548624ada9f49701faf0d1 (patch)
tree4079021a383ea0e2785b179f4e55976ddf8cdb82 /src/platformsupport/devicediscovery/qdevicediscovery_static.cpp
parent13714cdd64d96b0c37c8120143c03436900c256d (diff)
evdevtablet plugin
Change-Id: Ie8fbaac929180e6d4c626253c4c20d1b3a9083f5 Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com> Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Diffstat (limited to 'src/platformsupport/devicediscovery/qdevicediscovery_static.cpp')
-rw-r--r--src/platformsupport/devicediscovery/qdevicediscovery_static.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platformsupport/devicediscovery/qdevicediscovery_static.cpp b/src/platformsupport/devicediscovery/qdevicediscovery_static.cpp
index 3b6b6f40ca..2d89493d6b 100644
--- a/src/platformsupport/devicediscovery/qdevicediscovery_static.cpp
+++ b/src/platformsupport/devicediscovery/qdevicediscovery_static.cpp
@@ -162,6 +162,11 @@ bool QDeviceDiscovery::checkDeviceType(const QString &device)
qWarning() << "DeviceDiscovery found touchscreen at" << device;
#endif
ret = true;
+ } else if ((m_types & Device_Tablet) && (testBit(BTN_STYLUS, bitsKey) || testBit(BTN_TOOL_PEN, bitsKey))) {
+#ifdef QT_QPA_DEVICE_DISCOVERY_DEBUG
+ qWarning() << "DeviceDiscovery found tablet at" << device;
+#endif
+ ret = true;
}
}
}