Made to compile with Qt5

First of all, thanks for creating a very useful library! I am currently using it on a small project of mine,
I just made a minor change (just one line) in order to make it compile with Qt 5. I am a Qt noob so feel free to tell me where I did wrong.