1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 19:49:54 +00:00
openmw-tes3mp/apps/opencs/editor.cpp
2012-11-22 14:10:23 +01:00

21 lines
No EOL
337 B
C++

#include "editor.hpp"
#include <QtGui/QApplication>
CS::Editor::Editor() : mViewManager (mDocumentManager)
{
}
void CS::Editor::createDocument()
{
CSMDoc::Document *document = mDocumentManager.addDocument();
mViewManager.addView (document);
}
int CS::Editor::run()
{
createDocument();
return QApplication::exec();
}