forked from qt-creator/qt-creator
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:
@@ -221,7 +221,9 @@ Item {
|
|||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: focusGrabber
|
id: focusGrabber
|
||||||
anchors.fill: parent
|
y: searchBox.height
|
||||||
|
width: parent.width
|
||||||
|
height: parent.height - searchBox.height
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
onPressed: (mouse) => {
|
onPressed: (mouse) => {
|
||||||
forceActiveFocus() // Steal focus from name edit
|
forceActiveFocus() // Steal focus from name edit
|
||||||
|
Reference in New Issue
Block a user