Proper conditions in project file to accept Qt5

Qt5 gives a warning for help in CONFIG variable; it has been moved in QT variable.
QT variable also needs widgets and print support in this new version;

QT4 specific checks were wrapped in a check for version 4.