replace Q_WS_* by Q_OS_* for Qt5 compatibility