From: Stephan Witt Date: Tue, 7 Dec 2021 09:02:05 +0000 (+0100) Subject: Qt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ae56fb617184114329d1e5b9b5fbd6e2bc112231;p=features.git Qt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute --- 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