In Qt4 Qt::WFlags has been replaced by the Qt::WindowFlags
Merge pull request #374 from TNick/Qt5_WindowFlags

In Qt4 Qt::WFlags has been replaced by the Qt::WindowFlags