[LyX/master] Qt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute

Stephan Witt st.witt at gmx.net
Tue Dec 7 22:04:27 UTC 2021


Am 07.12.2021 um 18:32 schrieb Jean-Marc Lasgouttes <lasgouttes at lyx.org>:
> 
> 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).

You’re right. I don’t know why I changed it. Probably I thought it was a typo. I’ve changed the check accordingly (5.1.0 <= version < 6.0.0). 

Stephan


More information about the lyx-devel mailing list