Qt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute

This commit is contained in:
Stephan Witt 2021-12-07 10:02:05 +01:00
parent 53ed3dc062
commit ae56fb6171

View File

@ -2788,7 +2788,7 @@ void GuiApplication::execBatchCommands()
#if QT_VERSION > 0x040600 #if QT_VERSION > 0x040600
setAttribute(Qt::AA_MacDontSwapCtrlAndMeta,lyxrc.mac_dontswap_ctrl_meta); setAttribute(Qt::AA_MacDontSwapCtrlAndMeta,lyxrc.mac_dontswap_ctrl_meta);
#endif #endif
#if QT_VERSION > 0x050100 #if QT_VERSION >= 0x050000 && QT_VERSION < 0x060000
setAttribute(Qt::AA_UseHighDpiPixmaps,true); setAttribute(Qt::AA_UseHighDpiPixmaps,true);
#endif #endif
// Create the global default menubar which is shown for the dialogs // Create the global default menubar which is shown for the dialogs