aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-08 01:28:19 +0000
committerSaturneric <[email protected]>2021-12-08 01:28:19 +0000
commit088acc618f0b9925577ee6f74945eb37986aaeda (patch)
treea7691b1609176fc8cb898f1743486ede6a88a6a8 /src/main.cpp
parentModified Project Configure & Update CI & Stable UI. (diff)
downloadGpgFrontend-088acc618f0b9925577ee6f74945eb37986aaeda.tar.gz
GpgFrontend-088acc618f0b9925577ee6f74945eb37986aaeda.zip
Fix retina screen problem
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 96d3c4d8..b0537962 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -42,6 +42,11 @@ int main(int argc, char* argv[]) {
QApplication app(argc, argv);
QApplication::setWindowIcon(QIcon(":gpgfrontend.png"));
+#ifdef MACOS
+ // support retina screen
+ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
+#endif
+
// logging system
init_logging();