diff options
author | Kai Koehne <kai.koehne@qt.io> | 2017-12-13 12:10:39 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2018-01-04 09:45:24 +0000 |
commit | 196ae04aa7c9b274880409fb38a050db99197900 (patch) | |
tree | 5f3401fd34af9906ba2ff37841e7a71120e0bda1 /src/webenginewidgets/api/qwebengineprofile.cpp | |
parent | 6f242a9389369242b23a61dcb59fc610dc27bb05 (diff) |
Initialize ScreenWin singleton to fix dpi glitches on Windows
Static function ScreenWin::GetSystemMetricsInDIP returned an incorrect
(already scaled) size for the scrollbars. To take system scaling into
account an instance of the ScreenWin singleton has to be created once.
So let's use ScreenWin directly, instead of DesktopScreenQt, which is
just a mock object anyway.
[ChangeLog][Windows] Fixed issues with too large scrollbars on
Hi-DPI monitors.
Task-number: QTBUG-60705
Change-Id: I7cbc10e98b2a5217b0a0e78afb32818c1cb199d7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io>
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp')
0 files changed, 0 insertions, 0 deletions