aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/TextBox.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-25 15:38:18 +0800
committercrupest <crupest@outlook.com>2020-12-25 15:38:18 +0800
commitda7ad0ff5c5b158be69c6cf9a2c8e9fc9ef2b3cb (patch)
tree9d58ba66119f5a1f6efa5a9b75c22e0453993a07 /src/ui/controls/TextBox.cpp
parenta14704fbd9b9fb377b7009a9fbe641a9b8d0fdfb (diff)
downloadcru-da7ad0ff5c5b158be69c6cf9a2c8e9fc9ef2b3cb.tar.gz
cru-da7ad0ff5c5b158be69c6cf9a2c8e9fc9ef2b3cb.tar.bz2
cru-da7ad0ff5c5b158be69c6cf9a2c8e9fc9ef2b3cb.zip
...
Diffstat (limited to 'src/ui/controls/TextBox.cpp')
-rw-r--r--src/ui/controls/TextBox.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/controls/TextBox.cpp b/src/ui/controls/TextBox.cpp
index d8317a8c..e1acaee0 100644
--- a/src/ui/controls/TextBox.cpp
+++ b/src/ui/controls/TextBox.cpp
@@ -1,6 +1,5 @@
#include "cru/ui/controls/TextBox.hpp"
-#include "TextControlService.hpp"
#include "cru/ui/UiManager.hpp"
#include "cru/ui/render/BorderRenderObject.hpp"
#include "cru/ui/render/CanvasRenderObject.hpp"
@@ -30,7 +29,7 @@ TextBox::TextBox()
text_render_object_->SetAttachedControl(this);
text_render_object_->SetMinSize(Size{100, 24});
- service_ = std::make_unique<TextControlService<TextBox>>(this);
+ service_ = std::make_unique<TextHostControlService>(this);
service_->SetEnabled(true);
service_->SetEditable(true);