summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilippo Cucchetto <f.cucchetto@asem.it>2019-10-25 09:12:55 +0200
committerFilippo Cucchetto <f.cucchetto@asem.it>2019-10-25 14:12:44 +0200
commit2fac76e719fcc3889441af08e71c2decb106676a (patch)
tree786558a69fc1a10f58cd9e5dbed1ad8f6b9f8b3c
parent698a95dc8ad2218711293d3ee699a0a956e13eb7 (diff)
Windows QPA: add support for MouseDoubleClickDistance
Query the double click distance using the windows GetSystemMetric. See https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsystemmetrics Change-Id: I6198a38ab1a6216286897f8bdb305f334b7b148e Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r--src/plugins/platforms/windows/qwindowstheme.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowstheme.cpp b/src/plugins/platforms/windows/qwindowstheme.cpp
index 437c9562ab..40f9652cbd 100644
--- a/src/plugins/platforms/windows/qwindowstheme.cpp
+++ b/src/plugins/platforms/windows/qwindowstheme.cpp
@@ -466,6 +466,8 @@ QVariant QWindowsTheme::themeHint(ThemeHint hint) const
result = int(scrollLines);
return QVariant(result);
}
+ case MouseDoubleClickDistance:
+ return GetSystemMetrics(SM_CXDOUBLECLK);
default:
break;
}