summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-20 18:13:23 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-20 18:13:23 (GMT)
commitde6d8f35ac494c5007d47b40a67cf947ce5e0fba (patch)
tree4c759e30e8d6d0ec6ff774324fda4a1fc9d09cad
parent17c73b120bfe418a0e854fd7f2846014ef400b9c (diff)
Set Qt::AA_UseHighDpiPixmaps true for marble desktop apps
-rw-r--r--src/apps/marble-kde/kdemain.cpp2
-rw-r--r--src/apps/marble-qt/qtmain.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/apps/marble-kde/kdemain.cpp b/src/apps/marble-kde/kdemain.cpp
index 1f543d7..8e92004 100644
--- a/src/apps/marble-kde/kdemain.cpp
+++ b/src/apps/marble-kde/kdemain.cpp
@@ -81,6 +81,8 @@ static void loadLibAndPluginTranslations(QApplication &app)
int main ( int argc, char *argv[] )
{
+ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
+
QApplication app( argc, argv );
// Load Qt translation system catalog for the plugins and libmarblewidget
diff --git a/src/apps/marble-qt/qtmain.cpp b/src/apps/marble-qt/qtmain.cpp
index 46c791c..e94bfea 100644
--- a/src/apps/marble-qt/qtmain.cpp
+++ b/src/apps/marble-qt/qtmain.cpp
@@ -83,6 +83,8 @@ static void loadTranslations(QApplication &app)
int main(int argc, char *argv[])
{
+ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
+
QApplication app(argc, argv);
app.setApplicationName( "Marble Virtual Globe" );
app.setOrganizationName( "KDE" );