QmlDesigner: Fix material browser focus proxy

Introducing StudioQuickWidget caused additional widget to be
added between MaterialBrowserWidget and the actual quick widget
showing MaterialBrowser.qml. Updated material browser's focus proxy to
point to the correct widget.

Fixes: QDS-9104
Change-Id: I25f69ab6ad8d05a6ff98f34053c9585aa23402d8
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2023-06-29 14:40:56 +03:00
parent fcaa050d4e
commit 65f45d31f0

View File

@@ -204,7 +204,7 @@ MaterialBrowserWidget::MaterialBrowserWidget(AsynchronousImageCache &imageCache,
reloadQmlSource();
setFocusProxy(m_quickWidget.data());
setFocusProxy(m_quickWidget->quickWidget());
}
void MaterialBrowserWidget::updateMaterialPreview(const ModelNode &node, const QPixmap &pixmap)