summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-09-27 12:38:17 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-07 11:33:58 +0100
commit2e6a0df40e165e54b5e54eb2c0051c304690b641 (patch)
tree398986ff9a3254a92284d983b7a55e71365b7012 /rbutil
parent2e96657c36bca6e26aa96f25809f52437d094a1a (diff)
downloadrockbox-2e6a0df40e165e54b5e54eb2c0051c304690b641.tar.gz
rockbox-2e6a0df40e165e54b5e54eb2c0051c304690b641.tar.bz2
rockbox-2e6a0df40e165e54b5e54eb2c0051c304690b641.zip
rbutil: Enable HiDPI support on recent Qt versions.
Change-Id: Iafafacbac93304e1dd955dab0d8cba78a9622f6e
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/main.cpp4
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)
int main( int argc, char ** argv ) {
+#if QT_VERSION >= 0x050600
+ QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+ QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
+#endif
QApplication app( argc, argv );
ConsoleAppender* consoleAppender = new ConsoleAppender();
consoleAppender->setFormat("[%{file}:%{line} %{type}] %{message}\n");