[LyX/master] Qt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Tue Dec 7 17:32:56 UTC 2021
Le 07/12/2021 à 09:34, Stephan Witt a écrit :
> commit ae56fb617184114329d1e5b9b5fbd6e2bc112231
> Author: Stephan Witt <switt at lyx.org>
> Date: Tue Dec 7 10:02:05 2021 +0100
>
> Qt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute
> -#if QT_VERSION > 0x050100
> +#if QT_VERSION >= 0x050000 && QT_VERSION < 0x060000
> setAttribute(Qt::AA_UseHighDpiPixmaps,true);
> #endif
I am not sure why you change the reference to qt 5.1 to a reference to
5.2. AFAIK, this enum has been introduced in Qt 5.1 (I do not know why
there was a >, though).
JMarc
More information about the lyx-cvs
mailing list