Merge pull request #76 from mentalfl0w/dev

Added ToolTip for FluTabView's tab.
main
zhuzichu 2023-04-27 18:18:24 +08:00 committed by GitHub
commit 4222597ef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

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
}
} }
} }