Added Q_OBJECT macro