mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-13 16:30:29 -05:00
Fix icon scaling for HiDPI displays (#3332)
* Only apply hidpi icons on Linux
This commit is contained in:
parent
f66e9191a9
commit
12f42a555e
@ -50,6 +50,9 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
#ifdef Q_OS_LINUX
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
if (qgetenv("XDG_SESSION_TYPE") == QByteArrayLiteral("wayland")) {
|
if (qgetenv("XDG_SESSION_TYPE") == QByteArrayLiteral("wayland")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user