commit ae56fb617184114329d1e5b9b5fbd6e2bc112231
Author: Stephan Witt <[email protected]>
Date: Tue Dec 7 10:02:05 2021 +0100
Qt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute
---
src/frontends/qt/GuiApplication.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/frontends/qt/GuiApplication.cpp
b/src/frontends/qt/GuiApplication.cpp
index 54c8910..ed20130 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
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs