Fixed compiling with Qt5.

Q_WS_* is deprecated since Qt4. Breaks with Qt5, now.