Skip to content

Commit

Permalink
Fix High Dpi Support. Works now under Windows ande KDE/Plasma.
Browse files Browse the repository at this point in the history
Commit 4a53082 was incomplete...

Qts scaling environment variables shall never be changed by application.
That way the user hasn't any chance to fix things himself. With setting
QT_AUTO_SCREEN_SCALE_FACTOR to 1 QtPass does not work under KDE/Plasma
and cannot even be fixed by setting Qts scaling environment variables.
  • Loading branch information
hgraeber committed May 11, 2018
1 parent 3f6f753 commit 59adb7c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
* @return
*/
int main(int argc, char *argv[]) {
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QString text = "";
for (int i = 1; i < argc; ++i) {
Expand Down

0 comments on commit 59adb7c

Please sign in to comment.