mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix icon scaling for HiDPI displays (#3332)
* Only apply hidpi icons on Linux
This commit is contained in:
committed by
Jonathan White
parent
f66e9191a9
commit
12f42a555e
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user