fix compile error in Qt4.6.