mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
update
This commit is contained in:
parent
1a8d06331f
commit
dc3b1acaa5
@ -62,11 +62,25 @@ Rectangle {
|
|||||||
Component{
|
Component{
|
||||||
id:com_text
|
id:com_text
|
||||||
FluText {
|
FluText {
|
||||||
|
id:item_text
|
||||||
text: itemData
|
text: itemData
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 10
|
anchors.margins: 10
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
wrapMode: Text.WrapAnywhere
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
MouseArea{
|
||||||
|
id:item_mouse
|
||||||
|
hoverEnabled: true
|
||||||
|
anchors.fill: parent
|
||||||
|
acceptedButtons: Qt.NoButton
|
||||||
|
FluTooltip{
|
||||||
|
text: item_text.text
|
||||||
|
delay: 500
|
||||||
|
visible: item_text.contentWidth < item_text.implicitWidth && item_text.contentHeight < item_text.implicitHeight && item_mouse.containsMouse
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ScrollView{
|
ScrollView{
|
||||||
|
Loading…
Reference in New Issue
Block a user