amended to compile the code in QT :: 5.2.1