Windows: Query mouse double click interval from system.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Mon, 14 May 2012 11:47:41 +0000 (13:47 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 May 2012 19:33:48 +0000 (21:33 +0200)
Change-Id: I6bfd19a76bf3fde1344760d7f216a2dffa4b9018
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/plugins/platforms/windows/qwindowsintegration.cpp

index d46c138..26c7d54 100644 (file)
@@ -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);
 }