17 lines
304 B
C++
17 lines
304 B
C++
#include "TextEditorModel.h"
|
|
|
|
TextEditorModel::TextEditorModel()
|
|
: mDocument(PlainTextDocument::Create())
|
|
{
|
|
|
|
}
|
|
|
|
Ptr<TextEditorModel> TextEditorModel::Create()
|
|
{
|
|
return std::make_unique<TextEditorModel>();
|
|
}
|
|
|
|
PlainTextDocument* TextEditorModel::GetDocument() const
|
|
{
|
|
return mDocument.get();
|
|
}
|