Rename View::window() to View::rootView()

window() was an artifact of Qt4 times, when QWindow didn't exist yet.
This commit is contained in:
Sergio Martins
2022-05-01 22:51:27 +01:00
parent 4b41291830
commit fff3adf967
17 changed files with 26 additions and 27 deletions

View File

@@ -235,7 +235,7 @@ bool ViewWrapper_qtwidgets::is(Type t) const
return false;
}
std::shared_ptr<ViewWrapper> ViewWrapper_qtwidgets::window() const
std::shared_ptr<ViewWrapper> ViewWrapper_qtwidgets::rootView() const
{
if (auto w = m_widget->window())
return std::shared_ptr<ViewWrapper>(new ViewWrapper_qtwidgets(w));