use Q_WS_X11
Update version to 3.1.4.
Merge pull request #168 from Chilledheart/patch-2

use Q_WS_X11
Merge branch '3.1'
[build] enhance genapp.sh
port to qt5