]> git.lyx.org Git - lyx.git/commit
Improve HiDpi handling
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 25 Feb 2021 16:56:11 +0000 (17:56 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 4 Mar 2021 09:21:17 +0000 (10:21 +0100)
commit8b6460e4f2d4040e3df41ef0abc70cbbe14ad875
tree411b9aab6d09b5e069365184f9fb1eb20f8bf3c3
parent5adb55500661f815248fb4b0c49b2a09470c00e0
Improve HiDpi handling

Add code stolen from QBitTorrent and Qt Creator that properly enables
HighDpi handling.

The rules are:

1/ nothing needs to be done for macOS and Qt >= 6

2/ HighDpi support is set by default starting with Qt 5.6.

3/ Support for fractional scaling is added for Qt >= 5.14.

Hopefully fixes bug #12060.

(cherry picked from commit d7a4f47e7d42af33858ff263823bd7cdbea98b57)
(cherry picked from commit f92f2f95ffd5f0d9d9704c9d7f67e4a9e74db0f6)
src/frontends/qt4/GuiApplication.cpp
status.23x