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 truncate: false
|
||||||
property bool isSelect: false
|
property bool isSelect: false
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
ToolTip.visible: editStatus && truncate && control.containsMouse
|
ToolTip.visible: !editStatus && truncate && control.containsMouse
|
||||||
ToolTip.text: name
|
ToolTip.text: name
|
||||||
states: State {
|
states: State {
|
||||||
when: control.activeFocus
|
when: control.activeFocus
|
||||||
|
@ -55,7 +55,7 @@ MouseArea {
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
text: name
|
text: name
|
||||||
Component.onCompleted: {
|
onWidthChanged: {
|
||||||
control.truncate = textShow.truncated
|
control.truncate = textShow.truncated
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue