From ae56fb617184114329d1e5b9b5fbd6e2bc112231 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Tue, 7 Dec 2021 10:02:05 +0100 Subject: [PATCH] Qt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute --- src/frontends/qt/GuiApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp index 54c8910990..ed201301a7 100644 --- a/src/frontends/qt/GuiApplication.cpp +++ b/src/frontends/qt/GuiApplication.cpp @@ -2788,7 +2788,7 @@ void GuiApplication::execBatchCommands() #if QT_VERSION > 0x040600 setAttribute(Qt::AA_MacDontSwapCtrlAndMeta,lyxrc.mac_dontswap_ctrl_meta); #endif -#if QT_VERSION > 0x050100 +#if QT_VERSION >= 0x050000 && QT_VERSION < 0x060000 setAttribute(Qt::AA_UseHighDpiPixmaps,true); #endif // Create the global default menubar which is shown for the dialogs -- 2.39.5