diff options
author | crupest <crupest@outlook.com> | 2020-03-18 22:57:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-18 22:57:08 +0800 |
commit | c5a4f8c11d0d84d85359e5ff03477da5e9f12926 (patch) | |
tree | 47122aa3c07ecc536ca387f416de1179c8203329 /src/ui/controls/text_block.cpp | |
parent | bfd277f9f621931a1c6ea05ea2cd6d04455cfe67 (diff) | |
download | cru-c5a4f8c11d0d84d85359e5ff03477da5e9f12926.tar.gz cru-c5a4f8c11d0d84d85359e5ff03477da5e9f12926.tar.bz2 cru-c5a4f8c11d0d84d85359e5ff03477da5e9f12926.zip |
...
Diffstat (limited to 'src/ui/controls/text_block.cpp')
-rw-r--r-- | src/ui/controls/text_block.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/controls/text_block.cpp b/src/ui/controls/text_block.cpp index ece599e8..0a243d2e 100644 --- a/src/ui/controls/text_block.cpp +++ b/src/ui/controls/text_block.cpp @@ -4,6 +4,7 @@ #include "cru/ui/render/stack_layout_render_object.hpp" #include "cru/ui/render/text_render_object.hpp" #include "cru/ui/ui_manager.hpp" +#include "text_control_service.hpp" namespace cru::ui::controls { using render::CanvasRenderObject; @@ -29,7 +30,7 @@ TextBlock::TextBlock() caret_brush_ = theme_resources->caret_brush; - service_ = std::make_unique<TextControlService>(this, this); + service_ = std::make_unique<TextControlService<TextBlock>>(this); service_->SetEnabled(true); } |