for Qt5
Merge pull request #3 from Awesomez/master

Fix compile error with Qt5.