mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-10-31 08:09:33 +08:00
Added ToolTip for FluTabView's tab.
This commit is contained in:
parent
a70ddf7087
commit
a3adedf164
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user