Use View instead of ViewWrapper in the api

The latter will be an implementation detail soon
This commit is contained in:
Sergio Martins
2022-06-24 00:10:50 +01:00
parent 2ac996218f
commit 10c918b93c
38 changed files with 95 additions and 95 deletions

View File

@@ -147,7 +147,7 @@ void ViewWrapper_qtquick::setGeometry(QRect rect)
ViewWrapper_qtquick::move(rect.topLeft().x(), rect.topLeft().y());
}
std::shared_ptr<ViewWrapper> ViewWrapper_qtquick::childViewAt(QPoint p) const
std::shared_ptr<View> ViewWrapper_qtquick::childViewAt(QPoint p) const
{
auto child = m_item->childAt(p.x(), p.y());
return child ? asQQuickWrapper(child) : nullptr;
@@ -297,7 +297,7 @@ bool ViewWrapper_qtquick::is(Type t) const
return false;
}
std::shared_ptr<ViewWrapper> ViewWrapper_qtquick::rootView() const
std::shared_ptr<View> ViewWrapper_qtquick::rootView() const
{
if (Window::Ptr window = this->window())
return window->rootView();
@@ -306,7 +306,7 @@ std::shared_ptr<ViewWrapper> ViewWrapper_qtquick::rootView() const
return {};
}
std::shared_ptr<ViewWrapper> ViewWrapper_qtquick::parentView() const
std::shared_ptr<View> ViewWrapper_qtquick::parentView() const
{
return View_qtquick::parentViewFor(m_item);
}