forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user