Atlas-Launcher/source/javascript/module/image/ImageJsModule.cpp

11 lines
322 B
C++

#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));
}