aboutsummaryrefslogtreecommitdiff
path: root/src/ui/LayoutControl.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-28 20:51:55 +0800
committercrupest <crupest@outlook.com>2020-10-28 20:51:55 +0800
commit6ce70ed4b08c7db20b6b384be26c7fc4e11c98de (patch)
tree208ca80036c186d18e0ec25491881a760075ae83 /src/ui/LayoutControl.cpp
parent8f27c928c2ce4f3617c9113582a93da10721114c (diff)
downloadcru-6ce70ed4b08c7db20b6b384be26c7fc4e11c98de.tar.gz
cru-6ce70ed4b08c7db20b6b384be26c7fc4e11c98de.tar.bz2
cru-6ce70ed4b08c7db20b6b384be26c7fc4e11c98de.zip
...
Diffstat (limited to 'src/ui/LayoutControl.cpp')
-rw-r--r--src/ui/LayoutControl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/LayoutControl.cpp b/src/ui/LayoutControl.cpp
index 4813566b..05fcdc4a 100644
--- a/src/ui/LayoutControl.cpp
+++ b/src/ui/LayoutControl.cpp
@@ -19,7 +19,7 @@ void LayoutControl::AddChild(Control* control, const Index position) {
children_.insert(this->children_.cbegin() + position, control);
control->_SetParent(this);
- control->_SetDescendantUiHost(GetUiHost());
+ control->_SetDescendantWindowHost(GetWindowHost());
OnAddChild(control, position);
}
@@ -36,7 +36,7 @@ void LayoutControl::RemoveChild(const Index position) {
children_.erase(i);
child->_SetParent(nullptr);
- child->_SetDescendantUiHost(nullptr);
+ child->_SetDescendantWindowHost(nullptr);
OnRemoveChild(child, position);
}