2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:47:42 +00:00

Removed view ownership (client should do this)

This commit is contained in:
Jack Andersen
2015-12-09 17:14:38 -10:00
parent d58d8c2391
commit cb2df22ec2
11 changed files with 32 additions and 30 deletions

View File

@@ -122,10 +122,12 @@ void RootView::modKeyUp(boo::EModifierKey mod)
{
}
void RootView::setContentView(std::unique_ptr<View>&& view)
View* RootView::setContentView(View* view)
{
m_view = std::move(view);
View* ret = m_view;
m_view = view;
updateSize();
return ret;
}
void RootView::displayTooltip(const std::string& name, const std::string& help)