diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-05-14 13:47:41 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-14 21:33:48 +0200 |
commit | 61ebcc3ae7f232907f59b39c7edbd21559d6d9b6 (patch) | |
tree | f9a36617430e689409bc92360dc6e54a0d3aac7f /src/plugins/platforms/windows/qwindowsintegration.cpp | |
parent | 26790242c55175bc7298e98ee9b6b29c80b5c468 (diff) |
Windows: Query mouse double click interval from system.
Change-Id: I6bfd19a76bf3fde1344760d7f216a2dffa4b9018
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsintegration.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsintegration.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |