From 5dd477adb63115bfb8c1d461d0542736cb054a43 Mon Sep 17 00:00:00 2001 From: youdiansaodongxi Date: Wed, 24 May 2023 14:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=A4=B9?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/AppControls2/FolderItem.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qml/AppControls2/FolderItem.qml b/qml/AppControls2/FolderItem.qml index dcbb9c7..01523a5 100644 --- a/qml/AppControls2/FolderItem.qml +++ b/qml/AppControls2/FolderItem.qml @@ -10,7 +10,7 @@ MouseArea { property bool truncate: false property bool isSelect: false hoverEnabled: true - ToolTip.visible: editStatus && truncate && control.containsMouse + ToolTip.visible: !editStatus && truncate && control.containsMouse ToolTip.text: name states: State { when: control.activeFocus @@ -55,7 +55,7 @@ MouseArea { horizontalAlignment: Text.AlignLeft elide: Text.ElideRight text: name - Component.onCompleted: { + onWidthChanged: { control.truncate = textShow.truncated } }