Added Q_OBJECT macro to make slots work, made wrapping look more like existing editor