Porting Qt3 to Qt4