Update code so it compiles and runs in Qt creator 3.0.0 using Qt 5.2.