WinRT: Fix access to style hint instead of theme hint

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>
This commit is contained in:
Maurice Kalinowski 2015-01-29 13:33:30 +01:00 committed by Jani Heikkinen
parent b9ae324dc9
commit 012a7ab912

View 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;