WinRT: Fix access to style hint instead of theme hint
authorMaurice Kalinowski <maurice.kalinowski@theqtcompany.com>
Thu, 29 Jan 2015 12:33:30 +0000 (13:33 +0100)
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>
Mon, 2 Feb 2015 10:26:33 +0000 (10:26 +0000)
You need to specify explicitly the styleHint enum instead of the
theming one, which is where we want to forward to.

This caused all clicks to be ignored in case there is a listener to
pressAndHold as the hold period is reduced to 0 milliseconds.

Task-number: QTBUG-44196
Change-Id: I30d1771b91b5fa358e896e8441ade965543d4613
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Andrew Knight <qt@panimo.net>
src/plugins/platforms/winrt/qwinrttheme.cpp

index f64b47960a2fb0b5479704cad19feae3935b3728..e2857683f842c1b798db84e767486d2327318212 100644 (file)
@@ -232,7 +232,7 @@ QVariant QWinRTTheme::styleHint(QPlatformIntegration::StyleHint hint)
         return false;
     case QPlatformIntegration::ShowIsMaximized:
         return false;
-    case MousePressAndHoldInterval:
+    case QPlatformIntegration::MousePressAndHoldInterval:
         return defaultThemeHint(MousePressAndHoldInterval);
     default:
         break;