Merge pull request #55 from phedlund/enable_retina_support

Enable retina support on Mac OS.
This commit is contained in:
martinrotter 2016-08-23 07:02:40 +02:00 committed by GitHub
commit 474a5f2c93
2 changed files with 7 additions and 1 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>

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*>");