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

@@ -56,7 +56,7 @@ void Platform_qtwidgets::init()
qGuiApp->connect(qApp, &QGuiApplication::focusObjectChanged, qApp, [this](QObject *obj) {
ViewWrapper *wrapper = obj ? new Views::ViewWrapper_qtwidgets(obj) : nullptr;
d->focusedViewChanged.emit(std::shared_ptr<ViewWrapper>(wrapper));
d->focusedViewChanged.emit(std::shared_ptr<View>(wrapper));
});
}
@@ -74,11 +74,11 @@ bool Platform_qtwidgets::hasActivePopup() const
return qApp->activePopupWidget() != nullptr;
}
std::shared_ptr<ViewWrapper> Platform_qtwidgets::qobjectAsView(QObject *obj) const
std::shared_ptr<View> Platform_qtwidgets::qobjectAsView(QObject *obj) const
{
if (auto w = qobject_cast<QWidget *>(obj)) {
ViewWrapper *wrapper = new Views::ViewWrapper_qtwidgets(w);
return std::shared_ptr<ViewWrapper>(wrapper);
return std::shared_ptr<View>(wrapper);
}
return nullptr;