changeset 14154 | 8354b390f1a2 |
child 14271 | 1aac8a62be6f |
14153:b273b43b16d2 | 14154: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 } |