fix a Qt5 build issue
code clean up