From 53a02dc9edbaa5d9228f80c8d8dc9ec914abf187 Mon Sep 17 00:00:00 2001 From: Peter Hedlund Date: Mon, 22 Aug 2016 19:57:51 -0700 Subject: [PATCH] Enable retina display support on macOS. --- resources/macosx/Info.plist.in | 9 +++++++-- src/main.cpp | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/macosx/Info.plist.in b/resources/macosx/Info.plist.in index 048fd667c..ad2986e01 100755 --- a/resources/macosx/Info.plist.in +++ b/resources/macosx/Info.plist.in @@ -2,7 +2,10 @@ - + NSPrincipalClass + NSApplication + NSHighResolutionCapable + True CFBundleDevelopmentRegion English CFBundleExecutable @@ -16,7 +19,9 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - @EXECUTABLE@ + RSS Guard + CFBundleDisplayName + RSS Guard CFBundlePackageType APPL CFBundleShortVersionString diff --git a/src/main.cpp b/src/main.cpp index 21ce8f705..89e6fc705 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,6 +62,9 @@ int main(int argc, char *argv[]) { return EXIT_FAILURE; } + QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + // Register needed metatypes. qRegisterMetaType >("QList"); qRegisterMetaType >("QList");