Fix icon scaling for HiDPI displays (#3332)

* Only apply hidpi icons on Linux
This commit is contained in:
therealfarfetchd 2019-06-30 17:06:58 +02:00 committed by Jonathan White
parent f66e9191a9
commit 12f42a555e

View File

@ -50,6 +50,9 @@ int main(int argc, char** argv)
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#ifdef Q_OS_LINUX
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
#endif
#ifdef Q_OS_LINUX
if (qgetenv("XDG_SESSION_TYPE") == QByteArrayLiteral("wayland")) {