summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-05-14 13:47:41 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-14 21:33:48 +0200
commit61ebcc3ae7f232907f59b39c7edbd21559d6d9b6 (patch)
treef9a36617430e689409bc92360dc6e54a0d3aac7f /src
parent26790242c55175bc7298e98ee9b6b29c80b5c468 (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')
-rw-r--r--src/plugins/platforms/windows/qwindowsintegration.cpp5
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);
}