]> git.lyx.org Git - features.git/commit
Allow to properly scale the GUI with Qt5
authorEnrico Forestieri <forenr@lyx.org>
Sun, 22 Jan 2017 00:06:00 +0000 (01:06 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 22 Jan 2017 00:06:00 +0000 (01:06 +0100)
commit9e6cf6e05a25d38e8d7d9ecbf360b2aa5fd06d03
tree89e3318dbda878a68d61e4eadd33f42a97d24262
parentda6e100ccb5a4f5a47bb4574c74d046883a34064
Allow to properly scale the GUI with Qt5

Starting with Qt 5.6, setting the environment variable QT_SCALE_FACTOR
makes everything accordingly bigger. So, if QT_SCALE_FACTOR=1.2, all
text and GUI elements are rendered 20% bigger. However, if an application
does not account for this, everything will also look "blocky".
With this commit, all text and images will be scaled remaining sharp.
This works whether a HiDpi screen is used or not, but is mostly useful
with a HiDpi screen, as all GUI elements are more spaced apart and one
can use the mouse for selecting things without requiring a high precision.
src/LyX.cpp
src/LyX.h
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiWorkArea.cpp