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

18 lines
304 B
C++
Raw Normal View History

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