From 4844bc739b12c7b1c11e117871691580a46dee61 Mon Sep 17 00:00:00 2001 From: youdiansaodongxi Date: Mon, 8 Jul 2024 17:10:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(qml/AppUI):=20=E4=BF=AE=E5=A4=8D=E9=BC=A0?= =?UTF-8?q?=E6=A0=87=E7=A7=BB=E5=8A=A8=E5=88=B0=E6=90=9C=E7=B4=A2=E6=A1=86?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E5=85=89=E6=A0=87=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/AppUI/EditText.qml | 6 ++++++ qml/AppUI/SearchInputBar.qml | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/qml/AppUI/EditText.qml b/qml/AppUI/EditText.qml index 55f7040..3ddf695 100644 --- a/qml/AppUI/EditText.qml +++ b/qml/AppUI/EditText.qml @@ -100,6 +100,12 @@ Item { updateTextInputColor(); forceActiveFocus(); } + + MouseArea { + anchors.fill: parent + cursorShape: Qt.IBeamCursor + enabled: false + } } MouseArea { diff --git a/qml/AppUI/SearchInputBar.qml b/qml/AppUI/SearchInputBar.qml index a0d1e7a..364090b 100644 --- a/qml/AppUI/SearchInputBar.qml +++ b/qml/AppUI/SearchInputBar.qml @@ -130,4 +130,13 @@ UkuiItems.StyleBackground { textInput.clear(); } } + + MouseArea { + anchors.left: textInput.left + anchors.verticalCenter: parent.verticalCenter + width: clearButton.visible ? textInput.width : textInput.width + clearButton.width + height: parent.height + cursorShape: Qt.IBeamCursor + enabled: false + } }