stuff-from-scratch/apps/notes_tk/text_editor/TextEditorModel.cpp

18 lines
316 B
C++
Raw Normal View History

2020-06-27 09:47:30 +00:00
#include "TextEditorModel.h"
TextEditorModel::TextEditorModel()
: mDocument(PlainTextDocument::Create())
{
}
std::unique_ptr<TextEditorModel> TextEditorModel::Create()
{
return std::make_unique<TextEditorModel>();
}
PlainTextDocument* TextEditorModel::GetDocument() const
{
return mDocument.get();
}