diff options
| author | crupest <crupest@outlook.com> | 2020-10-28 20:51:55 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-10-28 20:51:55 +0800 |
| commit | 6ce70ed4b08c7db20b6b384be26c7fc4e11c98de (patch) | |
| tree | 208ca80036c186d18e0ec25491881a760075ae83 /src/ui/LayoutControl.cpp | |
| parent | 8f27c928c2ce4f3617c9113582a93da10721114c (diff) | |
| download | cru-6ce70ed4b08c7db20b6b384be26c7fc4e11c98de.tar.gz cru-6ce70ed4b08c7db20b6b384be26c7fc4e11c98de.tar.bz2 cru-6ce70ed4b08c7db20b6b384be26c7fc4e11c98de.zip | |
...
Diffstat (limited to 'src/ui/LayoutControl.cpp')
| -rw-r--r-- | src/ui/LayoutControl.cpp | 4 |
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); } |
