mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
21 lines
303 B
C++
21 lines
303 B
C++
|
|
||
|
#include "editor.hpp"
|
||
|
|
||
|
#include <QtGui/QApplication>
|
||
|
|
||
|
CS::Editor::Editor()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void CS::Editor::createDocument()
|
||
|
{
|
||
|
CSMDoc::Document *document = mDocumentManager.addDocument();
|
||
|
mViewManager.addView (document);
|
||
|
}
|
||
|
|
||
|
int CS::Editor::run()
|
||
|
{
|
||
|
createDocument();
|
||
|
|
||
|
return QApplication::exec();
|
||
|
}
|