修改文件夹标签显示的问题

This commit is contained in:
youdiansaodongxi 2023-05-24 14:43:37 +08:00 committed by He Sir
parent 7e1e60ea4a
commit 5dd477adb6
1 changed files with 2 additions and 2 deletions

View File

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