From a3adedf164e359512d71e684f70c805f4d1c87ec Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Thu, 27 Apr 2023 18:06:01 +0800 Subject: [PATCH] Added ToolTip for FluTabView's tab. --- src/imports/FluentUI/Controls/FluTabView.qml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/imports/FluentUI/Controls/FluTabView.qml b/src/imports/FluentUI/Controls/FluTabView.qml index ced4b68a..253189a7 100644 --- a/src/imports/FluentUI/Controls/FluTabView.qml +++ b/src/imports/FluentUI/Controls/FluTabView.qml @@ -133,9 +133,9 @@ Item { drag.axis: Drag.XAxis onWheel: (wheel)=>{ - if (wheel.angleDelta.y > 0) scroll_nav.decrease() - else scroll_nav.increase() - } + if (wheel.angleDelta.y > 0) scroll_nav.decrease() + else scroll_nav.increase() + } onPressed: { d.itemPress = true @@ -264,6 +264,11 @@ Item { Layout.preferredWidth: visible?item_container.width - 41 - item_btn_close.width:0 elide: Text.ElideRight Layout.alignment: Qt.AlignVCenter + FluTooltip{ + visible: item_mouse_hove.containsMouse + text:item_text.text + delay: 1000 + } } }