Review Request #126354 - Created Dec. 14, 2015 and submitted
Adapt CMakelists.txt + minor fix to be able to compile upon Qt5
Note: unicode() returns a ushort which is 16 bit, char is only 8 bit.
Now when unicode() returns a number not fitting into the char-range (non-latin1 char) => integral conversion => char may end up containing an invalid char (or a valid one, but not the one you expect).
So it's safer to use
toLatin1()here, which just returns a 0-char in such cases.