Add Platform_qt, a baseclass for both Qt frontends
So we can share some code between QtQuick and QtWidgets
This commit is contained in:
@@ -61,11 +61,6 @@ bool Platform_qtwidgets::hasActivePopup() const
|
||||
return qApp->activePopupWidget() != nullptr;
|
||||
}
|
||||
|
||||
std::shared_ptr<ViewWrapper> Platform_qtwidgets::focusedView() const
|
||||
{
|
||||
return qobjectAsView(qApp->focusObject());
|
||||
}
|
||||
|
||||
std::shared_ptr<ViewWrapper> Platform_qtwidgets::qobjectAsView(QObject *obj) const
|
||||
{
|
||||
if (auto w = qobject_cast<QWidget *>(obj)) {
|
||||
|
||||
Reference in New Issue
Block a user