Fix compilation with Qt >= 5.2
Merge pull request #6 from kanocz/master

Fix compilation with Qt >= 5.2