Fix off-by-not
Merge topic 'fix-Qt5-windows-build' into next

110a273b Fix off-by-not
QtDialog: Avoid linking to Qt4 WinMain when using Qt 5.

Override the QT_QTMAIN_LIBRARY cache variable with a regular
variable in the Qt 5 configuration.

Avoid linking to QT_QTMAIN_LIBRARY at all if CMP0020 is available. If
it is available, it is set at the top of the file, enabling automatic
linking of the correct WinMain library.
QtDialog: Don't define KWSYS_CP_UTF8 if using Qt 5.

Qt 5 expects source code in Utf-8, and the setCodecForCStrings etc
methods are not available in Qt 5.
Merge topic 'fix-Qt5-windows-build' into next

5263e765 QtDialog: Don't define KWSYS_CP_UTF8 if using Qt 5.
b67da75f QtDialog: Avoid linking to Qt4 WinMain when using Qt 5.