qmlfrontend/engine_instance.cpp
changeset 14159 8354b390f1a2
child 14276 1aac8a62be6f
equal deleted inserted replaced
14158:b273b43b16d2 14159:8354b390f1a2
       
     1 #include "engine_instance.h"
       
     2 
       
     3 EngineInstance::EngineInstance(QObject *parent)
       
     4     : QObject(parent), m_instance(Engine::start_engine()) {}
       
     5 
       
     6 EngineInstance::~EngineInstance() { Engine::cleanup(m_instance); }
       
     7 
       
     8 Engine::PreviewInfo EngineInstance::generatePreview() {
       
     9   Engine::PreviewInfo pinfo;
       
    10 
       
    11   Engine::generate_preview(m_instance, &pinfo);
       
    12 
       
    13   return pinfo;
       
    14 }