summaryrefslogtreecommitdiffstats
path: root/src/process/process.pro
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-09-22 18:22:04 +0200
committerJake Petroules <jake.petroules@theqtcompany.com>2015-10-13 17:04:07 +0000
commit9553493c55ff35215601de794e396605ae39a0e4 (patch)
tree2d24aff392b44d4692fd869135404fdb8dc188e2 /src/process/process.pro
parent378c588ccb9659c1c5066ab0da7d956d3843751e (diff)
make the render process DPI-aware
On Windows, system calls that retrieve screen properties (like GetSystemMetrics to get the size of a scroll bar button) are dependent on the DPI awareness setting of the calling process. The render process must use the same DPI awareness setting as the browser process. Retrieve the DPI awareness of the parent process in the render process and set it accordingly. Task-number: QTBUG-48380 Change-Id: Ic17d29d0f584e3cf230ac6ea2b08e3aa0d87ccdd Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/process/process.pro')
-rw-r--r--src/process/process.pro5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/process/process.pro b/src/process/process.pro
index 7844b1004..5526b0f1c 100644
--- a/src/process/process.pro
+++ b/src/process/process.pro
@@ -40,6 +40,11 @@ INCLUDEPATH += ../core
SOURCES = main.cpp
+win32 {
+ SOURCES += \
+ support_win.cpp
+}
+
contains(QT_CONFIG, qt_framework) {
target.path = $$[QT_INSTALL_LIBS]/QtWebEngineCore.framework/Versions/5/Helpers
} else {