┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2022-05-31 21:13:09 +0200
committerLaurent Montel <[email protected]>2022-05-31 21:13:09 +0200
commit6ee1e01eb0a3aefa1deabf86dd7dd71209eca8c6 (patch)
treecf3c10d1709a45e12f073a32293acd0fa4a41165
parent4fc25d5949ab64a187fa347593558959af554b7f (diff)
It's enabled by default in qt6
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8c48bb857..ff7977888 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -65,9 +65,10 @@ int main(int argc, char **argv)
/**
* enable high dpi support
*/
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
-
+#endif
QApplication app(argc, argv);
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("system-file-manager"), app.windowIcon()));