Fix Qt5 support
Merge pull request #1925 from diger/haiku

Fix Qt5 support