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