From 0fd152e37f2c575d55fc2bdcf7ed82461c4eb1a7 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Thu, 16 Feb 2023 13:57:43 +0200 Subject: [PATCH] QmlDesigner: Fix mouse cursor for material browser search field The focus grabber mouse area was interfering with mouse cursor on controls under it. There is no need to have grabber cover the search box, as clicking search box anyway moves focus. Task-number: QDS-9163 Change-Id: Ie2487296914a893dfc658ff8178963233a50c467 Reviewed-by: Mahmoud Badri --- .../qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml b/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml index d44870a087b..8b6239debfb 100644 --- a/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml +++ b/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml @@ -221,7 +221,9 @@ Item { MouseArea { id: focusGrabber - anchors.fill: parent + y: searchBox.height + width: parent.width + height: parent.height - searchBox.height acceptedButtons: Qt.LeftButton | Qt.RightButton onPressed: (mouse) => { forceActiveFocus() // Steal focus from name edit