add Q_OBJECT macro
ackd by Volker