Added ToolTip for FluTabView's tab.

This commit is contained in:
Mentalflow 2023-04-27 18:06:01 +08:00
parent a70ddf7087
commit a3adedf164
No known key found for this signature in database
GPG Key ID: 5AE68D4401A2EE71

View File

@ -133,9 +133,9 @@ Item {
drag.axis: Drag.XAxis drag.axis: Drag.XAxis
onWheel: (wheel)=>{ onWheel: (wheel)=>{
if (wheel.angleDelta.y > 0) scroll_nav.decrease() if (wheel.angleDelta.y > 0) scroll_nav.decrease()
else scroll_nav.increase() else scroll_nav.increase()
} }
onPressed: { onPressed: {
d.itemPress = true d.itemPress = true
@ -264,6 +264,11 @@ Item {
Layout.preferredWidth: visible?item_container.width - 41 - item_btn_close.width:0 Layout.preferredWidth: visible?item_container.width - 41 - item_btn_close.width:0
elide: Text.ElideRight elide: Text.ElideRight
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
FluTooltip{
visible: item_mouse_hove.containsMouse
text:item_text.text
delay: 1000
}
} }
} }