commit | e7dbb528927844fe58a6d05dd28e579425c9d658 | [log] [tgz] |
---|---|---|
author | Edric Milaret <edric.ladent-milaret@savoirfairelinux.com> | Wed Jan 20 13:30:08 2016 -0500 |
committer | gerrit2 <gerrit2@projects.savoirfairelinux.com> | Wed Jan 20 13:53:01 2016 -0500 |
tree | 8011ba56a39cf67fdf7500d56766edf41a4cd0d2 | |
parent | 45bf7c021b975d92219ee2030f5428a0c175f308 [diff] |
ui: support HDPI screen - enable Qt device pixel ratio detection, with a correctly written code the scale is painless (Use of QFontMetrics, ...) Change-Id: I868f8437c93a64651cf7ad8b0aa65804c6ad5295 Tuleap: #143
diff --git a/main.cpp b/main.cpp index 4fd53fd..e2f8880 100644 --- a/main.cpp +++ b/main.cpp
@@ -57,6 +57,8 @@ int main(int argc, char *argv[]) { + qputenv("QT_DEVICE_PIXEL_RATIO", "auto"); + QApplication a(argc, argv); auto startMinimized = false;