It's enabled by default in qt6

This commit is contained in:
Laurent Montel 2022-05-31 21:13:09 +02:00
parent 4fc25d5949
commit 6ee1e01eb0

View file

@ -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()));