update code for Qt 5.2-alpha