]> git.lyx.org Git - features.git/commitdiff
Qt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute
authorStephan Witt <switt@lyx.org>
Tue, 7 Dec 2021 09:02:05 +0000 (10:02 +0100)
committerStephan Witt <switt@lyx.org>
Tue, 7 Dec 2021 09:02:05 +0000 (10:02 +0100)
src/frontends/qt/GuiApplication.cpp

index 54c89109906b63c9aae6324780bd856aa7616383..ed201301a7de9784091ab41560d8e4ead8e4923a 100644 (file)
@@ -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