stuff-from-scratch/apps/notes_tk/text_editor/TextEditorModel.cpp
2022-12-02 11:50:15 +00:00

17 lines
316 B
C++

#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();
}