Fix building with Qt5 (missing QObject decl).
Merge pull request #1733 from glassez/fix_build

Fix building with Qt5 (missing QObject decl).