With the upcoming change to QFlags to support 64-bit, MSVC started to complain that it can't convert from Qt::Alignment to QFlag and back to Qt::Alignment. It is correct that this path has an explicit and shouldn't be taken, but a) it's worked for years b) GCC and Clang insert an extra conversion to int (I guess) In any case, header->iconAlignment is already a Qt::Alignment so we don't need to go through QFlag here. qcommonstyle.cpp(1666): error C2440: '<function-style-cast>': cannot convert from 'const Qt::Alignment' to 'QFlag' qcommonstyle.cpp(1666): note: Constructor for class 'QFlag' is declared 'explicit' Change-Id: If349995b779be9e3dab4fffd8701af8615ae407b Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit dc1f4b742edf469a61eb6067a5a0ca44aac6cd48) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%