From 8a52f143d70404e13b7e4c0cd087d171f1218140 Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Thu, 29 Jun 2023 10:07:02 +0800 Subject: [PATCH] update --- src/imports/FluentUI/Controls/FluTableView.qml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/imports/FluentUI/Controls/FluTableView.qml b/src/imports/FluentUI/Controls/FluTableView.qml index 18e3761e..245ce65f 100644 --- a/src/imports/FluentUI/Controls/FluTableView.qml +++ b/src/imports/FluentUI/Controls/FluTableView.qml @@ -69,18 +69,14 @@ Rectangle { elide: Text.ElideRight wrapMode: Text.WrapAnywhere 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 - } + HoverHandler{ + id: hover_handler + } + FluTooltip{ + text: item_text.text + delay: 500 + visible: item_text.contentWidth < item_text.implicitWidth && item_text.contentHeight < item_text.implicitHeight && hover_handler.hovered } - } } ScrollView{