#include "ImageJsModule.hpp" #include "object/ImageJsObject.hpp" ImageJsModule::ImageJsModule(AtlasJsEngine* engine) : BaseJsModule(engine) {} QJSValue ImageJsModule::load(const QString& path) { // TODO(Faraphel): can the new lead to a memory leak ? return this->engine->newQObject(new ImageJsObject(path)); }