From e7a9a15f78306594bfb9c09b78df73c70cf5a9f5 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Fri, 15 Nov 2024 04:27:57 +0000 Subject: [PATCH] sync: from linuxdeepin/dtkdeclarative Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: https://github.com/linuxdeepin/dtkdeclarative/pull/417 --- qt6/src/qml/TextField.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt6/src/qml/TextField.qml b/qt6/src/qml/TextField.qml index c2a8c53..4798502 100644 --- a/qt6/src/qml/TextField.qml +++ b/qt6/src/qml/TextField.qml @@ -77,14 +77,14 @@ T.TextField { { text: qsTr("Copy") onTriggered: control.copy() - enabled: control.selectedText.length + enabled: control.selectedText.length && control.echoMode === TextInput.Normal } MenuItem { text: qsTr("Cut") onTriggered: control.cut() - enabled: control.selectedText.length + enabled: !control.readonly && control.selectedText.length && control.echoMode === TextInput.Normal } MenuItem