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

11 lines
311 B
C++

#include "ImageJsModule.hpp"
#include "ImageJsObject.hpp"
ImageJsModule::ImageJsModule(QJSEngine* 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));
}