summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/devicediscovery/qdevicediscovery_udev.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_udev.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_udev.cpp')
-rw-r--r--src/platformsupport/devicediscovery/qdevicediscovery_udev.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platformsupport/devicediscovery/qdevicediscovery_udev.cpp b/src/platformsupport/devicediscovery/qdevicediscovery_udev.cpp
index f7fe7cb87c..eed12212af 100644
--- a/src/platformsupport/devicediscovery/qdevicediscovery_udev.cpp
+++ b/src/platformsupport/devicediscovery/qdevicediscovery_udev.cpp
@@ -132,6 +132,8 @@ QStringList QDeviceDiscovery::scanConnectedDevices()
udev_enumerate_add_match_property(ue, "ID_INPUT_TOUCHSCREEN", "1");
if (m_types & Device_Keyboard)
udev_enumerate_add_match_property(ue, "ID_INPUT_KEYBOARD", "1");
+ if (m_types & Device_Tablet)
+ udev_enumerate_add_match_property(ue, "ID_INPUT_TABLET", "1");
if (udev_enumerate_scan_devices(ue) != 0) {
#ifdef QT_QPA_DEVICE_DISCOVERY_DEBUG
@@ -241,6 +243,9 @@ bool QDeviceDiscovery::checkDeviceType(udev_device *dev)
if ((m_types & Device_Touchscreen) && (qstrcmp(udev_device_get_property_value(dev, "ID_INPUT_TOUCHSCREEN"), "1") == 0))
return true;
+ if ((m_types & Device_Tablet) && (qstrcmp(udev_device_get_property_value(dev, "ID_INPUT_TABLET"), "1") == 0))
+ return true;
+
if ((m_types & Device_DRM) && (qstrcmp(udev_device_get_subsystem(dev), "drm") == 0))
return true;