forked from openkylin/ukui-menu
修改文件夹标签显示的问题
This commit is contained in:
parent
7e1e60ea4a
commit
5dd477adb6
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue