diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-09-27 12:38:17 +0200 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-07 11:33:58 +0100 |
commit | 2e6a0df40e165e54b5e54eb2c0051c304690b641 (patch) | |
tree | 398986ff9a3254a92284d983b7a55e71365b7012 | |
parent | 2e96657c36bca6e26aa96f25809f52437d094a1a (diff) | |
download | rockbox-2e6a0df40e165e54b5e54eb2c0051c304690b641.tar.gz rockbox-2e6a0df40e165e54b5e54eb2c0051c304690b641.zip |
rbutil: Enable HiDPI support on recent Qt versions.
Change-Id: Iafafacbac93304e1dd955dab0d8cba78a9622f6e
-rw-r--r-- | rbutil/rbutilqt/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp index 160a31ba0e..eb34337b72 100644 --- a/rbutil/rbutilqt/main.cpp +++ b/rbutil/rbutilqt/main.cpp | |||
@@ -38,6 +38,10 @@ Q_IMPORT_PLUGIN(AccessibleFactory) | |||
38 | 38 | ||
39 | 39 | ||
40 | int main( int argc, char ** argv ) { | 40 | int main( int argc, char ** argv ) { |
41 | #if QT_VERSION >= 0x050600 | ||
42 | QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); | ||
43 | QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); | ||
44 | #endif | ||
41 | QApplication app( argc, argv ); | 45 | QApplication app( argc, argv ); |
42 | ConsoleAppender* consoleAppender = new ConsoleAppender(); | 46 | ConsoleAppender* consoleAppender = new ConsoleAppender(); |
43 | consoleAppender->setFormat("[%{file}:%{line} %{type}] %{message}\n"); | 47 | consoleAppender->setFormat("[%{file}:%{line} %{type}] %{message}\n"); |