From 61ebcc3ae7f232907f59b39c7edbd21559d6d9b6 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 14 May 2012 13:47:41 +0200 Subject: [PATCH] Windows: Query mouse double click interval from system. Change-Id: I6bfd19a76bf3fde1344760d7f216a2dffa4b9018 Reviewed-by: Miikka Heikkinen Reviewed-by: Friedemann Kleint --- src/plugins/platforms/windows/qwindowsintegration.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/platforms/windows/qwindowsintegration.cpp b/src/plugins/platforms/windows/qwindowsintegration.cpp index d46c138c96..26c7d548bc 100644 --- a/src/plugins/platforms/windows/qwindowsintegration.cpp +++ b/src/plugins/platforms/windows/qwindowsintegration.cpp @@ -362,12 +362,15 @@ QVariant QWindowsIntegration::styleHint(QPlatformIntegration::StyleHint hint) co #endif case QPlatformIntegration::StartDragTime: case QPlatformIntegration::StartDragDistance: - case QPlatformIntegration::MouseDoubleClickInterval: case QPlatformIntegration::KeyboardInputInterval: case QPlatformIntegration::ShowIsFullScreen: break; // Not implemented case QPlatformIntegration::FontSmoothingGamma: return QVariant(QWindowsFontDatabase::fontSmoothingGamma()); + case QPlatformIntegration::MouseDoubleClickInterval: + if (const int ms = GetDoubleClickTime()) + return QVariant(ms); + break; } return QPlatformIntegration::styleHint(hint); }