aboutsummaryrefslogtreecommitdiff
path: root/src/ui/layout_control.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-04-11 00:01:51 +0800
committercrupest <crupest@outlook.com>2020-04-11 00:01:51 +0800
commit23ef59b6aa14874e3b68c8716c137eb65583cd63 (patch)
tree3f15dbfe3115b03a19a49abb7fcbc27d9c440769 /src/ui/layout_control.cpp
parent41e17e281ba31e9eff612017f5a2dafd847278b0 (diff)
downloadcru-23ef59b6aa14874e3b68c8716c137eb65583cd63.tar.gz
cru-23ef59b6aa14874e3b68c8716c137eb65583cd63.tar.bz2
cru-23ef59b6aa14874e3b68c8716c137eb65583cd63.zip
...
Diffstat (limited to 'src/ui/layout_control.cpp')
-rw-r--r--src/ui/layout_control.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/layout_control.cpp b/src/ui/layout_control.cpp
index 90a825ff..1d5d1ede 100644
--- a/src/ui/layout_control.cpp
+++ b/src/ui/layout_control.cpp
@@ -19,7 +19,7 @@ void LayoutControl::AddChild(Control* control, const Index position) {
children_.insert(this->children_.cbegin() + position, control);
control->_SetParent(this);
- control->_SetDescendantWindow(GetWindow());
+ control->_SetDescendantUiHost(GetUiHost());
OnAddChild(control, position);
}
@@ -36,7 +36,7 @@ void LayoutControl::RemoveChild(const Index position) {
children_.erase(i);
child->_SetParent(nullptr);
- child->_SetDescendantWindow(nullptr);
+ child->_SetDescendantUiHost(nullptr);
OnRemoveChild(child, position);
}