From aeecd7445639c118a57bab4e74f7c5d91490d11e Mon Sep 17 00:00:00 2001 From: Anton Kudryavtsev Date: Fri, 29 Apr 2016 17:12:26 +0300 Subject: QQuickControlSettings (Android): check touch devices It's needed for Android devices that have not touch screen, e.g STB. QTBUG-36007 is already resolved and we can use QTouchDevice::devices() Task-number: QTBUG-36007 Task-number: QTBUG-53095 Change-Id: Iaab89cc75238d1aba83ce3d79f3c29fb5cab172f Reviewed-by: Shawn Rutledge Reviewed-by: J-P Nurmi --- src/controls/Private/qquickcontrolsettings.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/controls/Private/qquickcontrolsettings.cpp b/src/controls/Private/qquickcontrolsettings.cpp index 6f7dc729..a15c6889 100644 --- a/src/controls/Private/qquickcontrolsettings.cpp +++ b/src/controls/Private/qquickcontrolsettings.cpp @@ -82,15 +82,10 @@ static bool fromResource(const QString &path) bool QQuickControlSettings::hasTouchScreen() const { -// QTBUG-36007 -#if defined(Q_OS_ANDROID) - return true; -#else foreach (const QTouchDevice *dev, QTouchDevice::devices()) if (dev->type() == QTouchDevice::TouchScreen) return true; return false; -#endif } bool QQuickControlSettings::isMobile() const -- cgit v1.2.1