Enable retina display support on macOS.

This commit is contained in:
Peter Hedlund 2016-08-22 19:57:51 -07:00
parent 145c2b29f7
commit 53a02dc9ed
2 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,10 @@
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHighResolutionCapable</key>
<string>True</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
@ -16,7 +19,9 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>@EXECUTABLE@</string>
<string>RSS Guard</string>
<key>CFBundleDisplayName</key>
<string>RSS Guard</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>

View File

@ -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<Message> >("QList<Message>");
qRegisterMetaType<QList<RootItem*> >("QList<RootItem*>");