Updated to work with QtCreator 3.1 and Qt5.

Qt4 no longer supported, the code still compiling with Qt4 but I don't have plans
to maintain two versions or introduce hacks to support both Qt versions.