1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00
OpenMW/apps/opencs/view/doc/runlogsubview.cpp

21 lines
466 B
C++
Raw Normal View History

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