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 <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2023-02-16 13:57:43 +02:00
parent 7fc34fd59c
commit 0fd152e37f

View File

@@ -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