1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 23:54:01 +00:00
openmw/apps/opencs/view/doc/runlogsubview.cpp

23 lines
511 B
C++
Raw Normal View History

2014-09-05 11:49:34 +00:00
#include "runlogsubview.hpp"
2022-08-19 17:19:42 +00:00
#include "../../model/doc/document.hpp"
2022-10-19 17:02:00 +00:00
#include <apps/opencs/view/doc/subview.hpp>
2014-09-05 11:49:34 +00:00
#include <QTextEdit>
2022-09-22 18:26:05 +00:00
CSVDoc::RunLogSubView::RunLogSubView(const CSMWorld::UniversalId& id, CSMDoc::Document& document)
: SubView(id)
2014-09-05 11:49:34 +00:00
{
2022-09-22 18:26:05 +00:00
QTextEdit* edit = new QTextEdit(this);
edit->setDocument(document.getRunLog());
edit->setReadOnly(true);
2014-09-05 11:49:34 +00:00
2022-09-22 18:26:05 +00:00
setWidget(edit);
2014-09-05 11:49:34 +00:00
}
2022-09-22 18:26:05 +00:00
void CSVDoc::RunLogSubView::setEditLock(bool locked)
2014-09-05 11:49:34 +00:00
{
// ignored since this SubView does not have editing
2015-03-11 14:54:45 +00:00
}