Skip to content

Commit

Permalink
Windows QPA: add support for MouseDoubleClickDistance
Browse files Browse the repository at this point in the history
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ø <[email protected]>
  • Loading branch information
Filippo Cucchetto committed Oct 25, 2019
1 parent 698a95d commit 2fac76e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/platforms/windows/qwindowstheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ QVariant QWindowsTheme::themeHint(ThemeHint hint) const
result = int(scrollLines);
return QVariant(result);
}
case MouseDoubleClickDistance:
return GetSystemMetrics(SM_CXDOUBLECLK);
default:
break;
}
Expand Down

0 comments on commit 2fac76e

Please sign in to comment.