Revert "Removing unused Q_OBJECT macros"

(apparantly, compiling fine doesn't mean "Won't segfault")

This reverts commit df6cec2c54d38eaa945328a1dd855bc30d8b5d1c.