mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 10:53:53 +00:00
21 lines
No EOL
337 B
C++
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();
|
|
} |