Merge pull request #55 from phedlund/enable_retina_support
Enable retina support on Mac OS.
This commit is contained in:
commit
474a5f2c93
2 changed files with 7 additions and 1 deletions
|
@ -2,7 +2,10 @@
|
||||||
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
|
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
|
||||||
<plist version="0.9">
|
<plist version="0.9">
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>NSPrincipalClass</key>
|
||||||
|
<string>NSApplication</string>
|
||||||
|
<key>NSHighResolutionCapable</key>
|
||||||
|
<string>True</string>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>English</string>
|
<string>English</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
|
|
|
@ -62,6 +62,9 @@ int main(int argc, char *argv[]) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|
||||||
// Register needed metatypes.
|
// Register needed metatypes.
|
||||||
qRegisterMetaType<QList<Message> >("QList<Message>");
|
qRegisterMetaType<QList<Message> >("QList<Message>");
|
||||||
qRegisterMetaType<QList<RootItem*> >("QList<RootItem*>");
|
qRegisterMetaType<QList<RootItem*> >("QList<RootItem*>");
|
||||||
|
|
Loading…
Add table
Reference in a new issue